src/Entity/TopBanner.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. /**
  13.  * @Doctrine\ORM\Mapping\Entity
  14.  * @Doctrine\ORM\Mapping\Table(name="top_banner")
  15.  */
  16. class TopBanner implements BlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  17.     use BlameableTrait;
  18.     use TimestampableTrait;
  19.     
  20.     use SoftDeletableTrait;
  21.     
  22. /**
  23.      * @Doctrine\ORM\Mapping\Id
  24.      * @Doctrine\ORM\Mapping\Column(type="integer")
  25.      * @Doctrine\ORM\Mapping\GeneratedValue(strategy="AUTO")
  26.      */
  27.     protected $id;
  28.     /**
  29.      * @Doctrine\ORM\Mapping\Column(type="string", length=255)
  30.      */
  31.     protected $name;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Language")
  34.      * @ORM\JoinColumn(name="language", referencedColumnName="id")
  35.      */
  36.     protected $language;
  37.     /**
  38.      * @var boolean
  39.      *
  40.      * @ORM\Column(name="is_active", type="boolean", nullable=true)
  41.      */
  42.     private $active;
  43.     /**
  44.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  45.      */
  46.     protected $textLeft;
  47.     /**
  48.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  49.      */
  50.     protected $textRight;
  51.     /**
  52.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  53.      */
  54.     protected $url;
  55.     /**
  56.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  57.      */
  58.     protected $background;
  59.     /**
  60.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  61.      */
  62.     protected $textColor;
  63.     /**
  64.      * @var \DateTime
  65.      *
  66.      * @ORM\Column(name="end_date", type="datetime", nullable=true)
  67.      */
  68.     private $endDate;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getName(): ?string
  74.     {
  75.         return $this->name;
  76.     }
  77.     public function setName(string $name): self
  78.     {
  79.         $this->name $name;
  80.         return $this;
  81.     }
  82.     public function getActive(): ?bool
  83.     {
  84.         return $this->active;
  85.     }
  86.     public function setActive(?bool $active): self
  87.     {
  88.         $this->active $active;
  89.         return $this;
  90.     }
  91.     public function getTextLeft(): ?string
  92.     {
  93.         return $this->textLeft;
  94.     }
  95.     public function setTextLeft(string $textLeft): self
  96.     {
  97.         $this->textLeft $textLeft;
  98.         return $this;
  99.     }
  100.     public function getTextRight(): ?string
  101.     {
  102.         return $this->textRight;
  103.     }
  104.     public function setTextRight(string $textRight): self
  105.     {
  106.         $this->textRight $textRight;
  107.         return $this;
  108.     }
  109.     public function getUrl(): ?string
  110.     {
  111.         return $this->url;
  112.     }
  113.     public function setUrl(string $url): self
  114.     {
  115.         $this->url $url;
  116.         return $this;
  117.     }
  118.     public function getBackground(): ?string
  119.     {
  120.         return $this->background;
  121.     }
  122.     public function setBackground(string $background): self
  123.     {
  124.         $this->background $background;
  125.         return $this;
  126.     }
  127.     public function getTextColor(): ?string
  128.     {
  129.         return $this->textColor;
  130.     }
  131.     public function setTextColor(string $textColor): self
  132.     {
  133.         $this->textColor $textColor;
  134.         return $this;
  135.     }
  136.     public function getEndDate(): ?\DateTimeInterface
  137.     {
  138.         return $this->endDate;
  139.     }
  140.     public function setEndDate(?\DateTimeInterface $endDate): self
  141.     {
  142.         $this->endDate $endDate;
  143.         return $this;
  144.     }
  145.     public function getLanguage(): ?Language
  146.     {
  147.         return $this->language;
  148.     }
  149.     public function setLanguage(?Language $language): self
  150.     {
  151.         $this->language $language;
  152.         return $this;
  153.     }
  154. }