src/Entity/Messages.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\MessagesRepository")
  6.  */
  7. class Messages
  8. {
  9.     /**
  10.      * @var int
  11.      *
  12.      * @ORM\Column(name="id", type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var string
  19.      *
  20.      * @ORM\Column(name="fName", type="string", length=255,nullable=false)
  21.      */
  22.     private $fName;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="lName", type="string", length=255,nullable=false)
  27.      */
  28.     private $lName;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="email", type="string", length=255,nullable=false)
  33.      */
  34.     private $email;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="phone", type="string", length=255,nullable=false)
  39.      */
  40.     private $phone;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="subject", type="string", length=255,nullable=true)
  45.      */
  46.     private $subject;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="object", type="string", length=255,nullable=false)
  51.      */
  52.     private $object;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="content", type="text",nullable=true)
  57.      */
  58.     private $content;
  59.     /**
  60.      * @var \DateTime
  61.      *
  62.      * @ORM\Column(name="date", type="datetime",nullable=true)
  63.      */
  64.     private $date;
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(name="IP", type="string", length=255, nullable=true)
  69.      */
  70.     private $iP;
  71.     /**
  72.      * @var string
  73.      *
  74.      * @ORM\Column(name="browser", type="string", length=255)
  75.      */
  76.     private $browser;
  77.     /**
  78.      * @var string
  79.      *
  80.      * @ORM\Column(name="OS", type="string", length=255)
  81.      */
  82.     private $oS;
  83.     /**
  84.      * @var string
  85.      *
  86.      * @ORM\Column(name="civility", type="string", length=255, nullable=true)
  87.      */
  88.     private $civility;
  89.     /**
  90.      * @var string
  91.      *
  92.      * @ORM\Column(name="country", type="string", length=255, nullable=true)
  93.      */
  94.     private $country;
  95.     /**
  96.      * Get id
  97.      *
  98.      * @return int
  99.      */
  100.     public function getId()
  101.     {
  102.         return $this->id;
  103.     }
  104.     /**
  105.      * Set email
  106.      *
  107.      * @param string $email
  108.      *
  109.      * @return Messages
  110.      */
  111.     public function setEmail($email)
  112.     {
  113.         $this->email $email;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get email
  118.      *
  119.      * @return string
  120.      */
  121.     public function getEmail()
  122.     {
  123.         return $this->email;
  124.     }
  125.     /**
  126.      * Set phone
  127.      *
  128.      * @param string $phone
  129.      *
  130.      * @return Messages
  131.      */
  132.     public function setPhone($phone)
  133.     {
  134.         $this->phone $phone;
  135.         return $this;
  136.     }
  137.     /**
  138.      * Get phone
  139.      *
  140.      * @return string
  141.      */
  142.     public function getPhone()
  143.     {
  144.         return $this->phone;
  145.     }
  146.     /**
  147.      * Set object
  148.      *
  149.      * @param string $object
  150.      *
  151.      * @return Messages
  152.      */
  153.     public function setObject($object)
  154.     {
  155.         $this->object $object;
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get object
  160.      *
  161.      * @return string
  162.      */
  163.     public function getObject()
  164.     {
  165.         return $this->object;
  166.     }
  167.     /**
  168.      * Get subject
  169.      *
  170.      * @return string
  171.      */
  172.     public function getSubject()
  173.     {
  174.         return $this->subject;
  175.     }
  176.     /**
  177.      * Set subject
  178.      *
  179.      * @param string $subject
  180.      *
  181.      * @return Messages
  182.      */
  183.     public function setSubject($subject)
  184.     {
  185.         $this->subject $subject;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Set content
  190.      *
  191.      * @param string $content
  192.      *
  193.      * @return Messages
  194.      */
  195.     public function setContent($content)
  196.     {
  197.         $this->content $content;
  198.         return $this;
  199.     }
  200.     /**
  201.      * Get content
  202.      *
  203.      * @return string
  204.      */
  205.     public function getContent()
  206.     {
  207.         return $this->content;
  208.     }
  209.     /**
  210.      * Set date
  211.      *
  212.      * @param \DateTime $date
  213.      *
  214.      * @return Messages
  215.      */
  216.     public function setDate($date)
  217.     {
  218.         $this->date $date;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get date
  223.      *
  224.      * @return \DateTime
  225.      */
  226.     public function getDate()
  227.     {
  228.         return $this->date;
  229.     }
  230.     /**
  231.      * Set iP
  232.      *
  233.      * @param string $iP
  234.      *
  235.      * @return Messages
  236.      */
  237.     public function setIP($iP)
  238.     {
  239.         $this->iP $iP;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get iP
  244.      *
  245.      * @return string
  246.      */
  247.     public function getIP()
  248.     {
  249.         return $this->iP;
  250.     }
  251.     /**
  252.      * Set browser
  253.      *
  254.      * @param string $browser
  255.      *
  256.      * @return Messages
  257.      */
  258.     public function setBrowser($browser)
  259.     {
  260.         $this->browser $browser;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get browser
  265.      *
  266.      * @return string
  267.      */
  268.     public function getBrowser()
  269.     {
  270.         return $this->browser;
  271.     }
  272.     /**
  273.      * Set oS
  274.      *
  275.      * @param string $oS
  276.      *
  277.      * @return Messages
  278.      */
  279.     public function setOS($oS)
  280.     {
  281.         $this->oS $oS;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get oS
  286.      *
  287.      * @return string
  288.      */
  289.     public function getOS()
  290.     {
  291.         return $this->oS;
  292.     }
  293.     /**
  294.      * Set fName
  295.      *
  296.      * @param string $fName
  297.      *
  298.      * @return Messages
  299.      */
  300.     public function setFName($fName)
  301.     {
  302.         $this->fName $fName;
  303.         return $this;
  304.     }
  305.     /**
  306.      * Get fName
  307.      *
  308.      * @return string
  309.      */
  310.     public function getFName()
  311.     {
  312.         return $this->fName;
  313.     }
  314.     /**
  315.      * Set lName
  316.      *
  317.      * @param string $lName
  318.      *
  319.      * @return Messages
  320.      */
  321.     public function setLName($lName)
  322.     {
  323.         $this->lName $lName;
  324.         return $this;
  325.     }
  326.     /**
  327.      * Get lName
  328.      *
  329.      * @return string
  330.      */
  331.     public function getLName(){
  332.         return $this->lName;
  333.     }
  334.     public function getName(){return $this->fName.' '.$this->lName;}
  335.     public function getFullName(){return $this->civility.' '.$this->getName();}
  336.     public function setCivility($civility)
  337.     {
  338.         $this->civility $civility;
  339.         return $this;
  340.     }
  341.     public function getCivility()
  342.     {
  343.         return $this->civility;
  344.     }
  345.     public function setCountry($country)
  346.     {
  347.         $this->country $country;
  348.         return $this;
  349.     }
  350.     public function getCountry()
  351.     {
  352.         return $this->country;
  353.     }
  354. }