src/Entity/Messages.php line 10

Open in your IDE?
  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.      * @ORM\ManyToOne(targetEntity=Structures::class)
  97.      */
  98.     private $structure;
  99.     /**
  100.      * Get id
  101.      *
  102.      * @return int
  103.      */
  104.     public function getId()
  105.     {
  106.         return $this->id;
  107.     }
  108.     /**
  109.      * Set email
  110.      *
  111.      * @param string $email
  112.      *
  113.      * @return Messages
  114.      */
  115.     public function setEmail($email)
  116.     {
  117.         $this->email $email;
  118.         return $this;
  119.     }
  120.     /**
  121.      * Get email
  122.      *
  123.      * @return string
  124.      */
  125.     public function getEmail()
  126.     {
  127.         return $this->email;
  128.     }
  129.     /**
  130.      * Set phone
  131.      *
  132.      * @param string $phone
  133.      *
  134.      * @return Messages
  135.      */
  136.     public function setPhone($phone)
  137.     {
  138.         $this->phone $phone;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get phone
  143.      *
  144.      * @return string
  145.      */
  146.     public function getPhone()
  147.     {
  148.         return $this->phone;
  149.     }
  150.     /**
  151.      * Set object
  152.      *
  153.      * @param string $object
  154.      *
  155.      * @return Messages
  156.      */
  157.     public function setObject($object)
  158.     {
  159.         $this->object $object;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get object
  164.      *
  165.      * @return string
  166.      */
  167.     public function getObject()
  168.     {
  169.         return $this->object;
  170.     }
  171.     /**
  172.      * Get subject
  173.      *
  174.      * @return string
  175.      */
  176.     public function getSubject()
  177.     {
  178.         return $this->subject;
  179.     }
  180.     /**
  181.      * Set subject
  182.      *
  183.      * @param string $subject
  184.      *
  185.      * @return Messages
  186.      */
  187.     public function setSubject($subject)
  188.     {
  189.         $this->subject $subject;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Set content
  194.      *
  195.      * @param string $content
  196.      *
  197.      * @return Messages
  198.      */
  199.     public function setContent($content)
  200.     {
  201.         $this->content $content;
  202.         return $this;
  203.     }
  204.     /**
  205.      * Get content
  206.      *
  207.      * @return string
  208.      */
  209.     public function getContent()
  210.     {
  211.         return $this->content;
  212.     }
  213.     /**
  214.      * Set date
  215.      *
  216.      * @param \DateTime $date
  217.      *
  218.      * @return Messages
  219.      */
  220.     public function setDate($date)
  221.     {
  222.         $this->date $date;
  223.         return $this;
  224.     }
  225.     /**
  226.      * Get date
  227.      *
  228.      * @return \DateTime
  229.      */
  230.     public function getDate()
  231.     {
  232.         return $this->date;
  233.     }
  234.     /**
  235.      * Set iP
  236.      *
  237.      * @param string $iP
  238.      *
  239.      * @return Messages
  240.      */
  241.     public function setIP($iP)
  242.     {
  243.         $this->iP $iP;
  244.         return $this;
  245.     }
  246.     /**
  247.      * Get iP
  248.      *
  249.      * @return string
  250.      */
  251.     public function getIP()
  252.     {
  253.         return $this->iP;
  254.     }
  255.     /**
  256.      * Set browser
  257.      *
  258.      * @param string $browser
  259.      *
  260.      * @return Messages
  261.      */
  262.     public function setBrowser($browser)
  263.     {
  264.         $this->browser $browser;
  265.         return $this;
  266.     }
  267.     /**
  268.      * Get browser
  269.      *
  270.      * @return string
  271.      */
  272.     public function getBrowser()
  273.     {
  274.         return $this->browser;
  275.     }
  276.     /**
  277.      * Set oS
  278.      *
  279.      * @param string $oS
  280.      *
  281.      * @return Messages
  282.      */
  283.     public function setOS($oS)
  284.     {
  285.         $this->oS $oS;
  286.         return $this;
  287.     }
  288.     /**
  289.      * Get oS
  290.      *
  291.      * @return string
  292.      */
  293.     public function getOS()
  294.     {
  295.         return $this->oS;
  296.     }
  297.     /**
  298.      * Set fName
  299.      *
  300.      * @param string $fName
  301.      *
  302.      * @return Messages
  303.      */
  304.     public function setFName($fName)
  305.     {
  306.         $this->fName $fName;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Get fName
  311.      *
  312.      * @return string
  313.      */
  314.     public function getFName()
  315.     {
  316.         return $this->fName;
  317.     }
  318.     /**
  319.      * Set lName
  320.      *
  321.      * @param string $lName
  322.      *
  323.      * @return Messages
  324.      */
  325.     public function setLName($lName)
  326.     {
  327.         $this->lName $lName;
  328.         return $this;
  329.     }
  330.     /**
  331.      * Get lName
  332.      *
  333.      * @return string
  334.      */
  335.     public function getLName(){
  336.         return $this->lName;
  337.     }
  338.     public function getName(){return $this->fName.' '.$this->lName;}
  339.     public function getFullName(){return $this->civility.' '.$this->getName();}
  340.     public function setCivility($civility)
  341.     {
  342.         $this->civility $civility;
  343.         return $this;
  344.     }
  345.     public function getCivility()
  346.     {
  347.         return $this->civility;
  348.     }
  349.     public function setCountry($country)
  350.     {
  351.         $this->country $country;
  352.         return $this;
  353.     }
  354.     public function getCountry()
  355.     {
  356.         return $this->country;
  357.     }
  358.     public function getStructure(): ?Structures
  359.     {
  360.         return $this->structure;
  361.     }
  362.     public function setStructure(?Structures $structure): self
  363.     {
  364.         $this->structure $structure;
  365.         return $this;
  366.     }
  367. }