app/Entity/Schema/ORM/SiteNews.php line 13

Open in your IDE?
  1. <?php
  2. namespace Sq\Entity\Schema\ORM;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Sq\Entity\Schema\Column;
  5. /**
  6.  * SiteNews.
  7.  */
  8. #[ORM\Entity]
  9. #[ORM\Table(name'site_news')]
  10. class SiteNews
  11. {
  12.     /**
  13.      * @var int
  14.      */
  15.     #[ORM\Column(name'site_news_id'type'smallint'nullablefalseoptions: ['unsigned' => true])]
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  18.     private $id;
  19.     /**
  20.      * @var \DateTimeInterface|null
  21.      */
  22.     #[ORM\Column(name'site_news_date'type'datetime'nullabletrue)]
  23.     private $date;
  24.     /**
  25.      * @var resource|null
  26.      */
  27.     #[ORM\Column(name'site_news_text'type'blob'length65535nullabletrue)]
  28.     private $text;
  29.     /**
  30.      * @var bool|null
  31.      */
  32.     #[ORM\Column(name'site_news_sent'type'boolean'nullabletrue)]
  33.     private $sent false;
  34.     /**
  35.      * @var string|null
  36.      */
  37.     #[ORM\Column(name'site_news_target'type'string'columnDefinition"ENUM('legacy', 'overhaul')"options: ['default' => 'legacy'])]
  38.     private $target Column\SiteNewsTarget::LEGACY;
  39.     /**
  40.      * @var string|null
  41.      */
  42.     #[ORM\Column(name'site_news_title'type'string'length191nullabletrue)]
  43.     private $title;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getDate(): ?\DateTimeInterface
  49.     {
  50.         return $this->date;
  51.     }
  52.     public function setDate(?\DateTimeInterface $date): self
  53.     {
  54.         $this->date $date;
  55.         return $this;
  56.     }
  57.     public function getText()
  58.     {
  59.         return $this->text;
  60.     }
  61.     public function setText($text): self
  62.     {
  63.         $this->text $text;
  64.         return $this;
  65.     }
  66.     public function getSent(): ?bool
  67.     {
  68.         return $this->sent;
  69.     }
  70.     public function setSent(?bool $sent): self
  71.     {
  72.         $this->sent $sent;
  73.         return $this;
  74.     }
  75.     public function getTarget(): ?string
  76.     {
  77.         return $this->target;
  78.     }
  79.     public function setTarget(?string $target): self
  80.     {
  81.         $this->target $target;
  82.         return $this;
  83.     }
  84.     public function getTitle(): ?string
  85.     {
  86.         return $this->title;
  87.     }
  88.     public function setTitle(?string $title): self
  89.     {
  90.         $this->title $title;
  91.         return $this;
  92.     }
  93. }