src/Entity/Message.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MessageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MessageRepository::class)
  7.  */
  8. class Message
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $lastname;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $firstname;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $email;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $telephone;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $object;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      */
  39.     private $message;
  40.     /**
  41.      * @ORM\Column(type="datetime_immutable", nullable=true)
  42.      */
  43.     private $created_at;
  44.     /**
  45.      * @ORM\Column(type="boolean", nullable=true)
  46.      */
  47.     private $viewed;
  48.     /**
  49.      * @ORM\Column(type="datetime", nullable=true)
  50.      */
  51.     private $vieweddate;
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity=Site::class, inversedBy="messages")
  54.      */
  55.     private $site;
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getLastname(): ?string
  61.     {
  62.         return $this->lastname;
  63.     }
  64.     public function setLastname(?string $lastname): self
  65.     {
  66.         $this->lastname $lastname;
  67.         return $this;
  68.     }
  69.     public function getFirstname(): ?string
  70.     {
  71.         return $this->firstname;
  72.     }
  73.     public function setFirstname(?string $firstname): self
  74.     {
  75.         $this->firstname $firstname;
  76.         return $this;
  77.     }
  78.     public function getEmail(): ?string
  79.     {
  80.         return $this->email;
  81.     }
  82.     public function setEmail(?string $email): self
  83.     {
  84.         $this->email $email;
  85.         return $this;
  86.     }
  87.     public function getTelephone(): ?string
  88.     {
  89.         return $this->telephone;
  90.     }
  91.     public function setTelephone(?string $telephone): self
  92.     {
  93.         $this->telephone $telephone;
  94.         return $this;
  95.     }
  96.     public function getObject(): ?string
  97.     {
  98.         return $this->object;
  99.     }
  100.     public function setObject(?string $object): self
  101.     {
  102.         $this->object $object;
  103.         return $this;
  104.     }
  105.     public function getMessage(): ?string
  106.     {
  107.         return $this->message;
  108.     }
  109.     public function setMessage(?string $message): self
  110.     {
  111.         $this->message $message;
  112.         return $this;
  113.     }
  114.     public function getCreatedAt(): ?\DateTimeImmutable
  115.     {
  116.         return $this->created_at;
  117.     }
  118.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  119.     {
  120.         $this->created_at $created_at;
  121.         return $this;
  122.     }
  123.     public function isViewed(): ?bool
  124.     {
  125.         return $this->viewed;
  126.     }
  127.     public function setViewed(?bool $viewed): self
  128.     {
  129.         $this->viewed $viewed;
  130.         return $this;
  131.     }
  132.     public function getVieweddate(): ?\DateTimeInterface
  133.     {
  134.         return $this->vieweddate;
  135.     }
  136.     public function setVieweddate(?\DateTimeInterface $vieweddate): self
  137.     {
  138.         $this->vieweddate $vieweddate;
  139.         return $this;
  140.     }
  141.     public function getSite(): ?Site
  142.     {
  143.         return $this->site;
  144.     }
  145.     public function setSite(?Site $site): self
  146.     {
  147.         $this->site $site;
  148.         return $this;
  149.     }
  150. }