src/Entity/TopInformation.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_information")
  15.  */
  16. class TopInformation 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="text", nullable=true)
  45.      */
  46.     protected $text;
  47.     /**
  48.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  49.      */
  50.     protected $url;
  51.     /**
  52.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  53.      */
  54.     protected $background;
  55.     /**
  56.      * @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
  57.      */
  58.     protected $textColor;
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getName(): ?string
  64.     {
  65.         return $this->name;
  66.     }
  67.     public function setName(string $name): self
  68.     {
  69.         $this->name $name;
  70.         return $this;
  71.     }
  72.     public function getActive(): ?bool
  73.     {
  74.         return $this->active;
  75.     }
  76.     public function setActive(?bool $active): self
  77.     {
  78.         $this->active $active;
  79.         return $this;
  80.     }
  81.     public function getTextLeft(): ?string
  82.     {
  83.         return $this->textLeft;
  84.     }
  85.     public function setTextLeft(string $textLeft): self
  86.     {
  87.         $this->textLeft $textLeft;
  88.         return $this;
  89.     }
  90.     public function getTextRight(): ?string
  91.     {
  92.         return $this->textRight;
  93.     }
  94.     public function setTextRight(string $textRight): self
  95.     {
  96.         $this->textRight $textRight;
  97.         return $this;
  98.     }
  99.     public function getUrl(): ?string
  100.     {
  101.         return $this->url;
  102.     }
  103.     public function setUrl(string $url): self
  104.     {
  105.         $this->url $url;
  106.         return $this;
  107.     }
  108.     public function getBackground(): ?string
  109.     {
  110.         return $this->background;
  111.     }
  112.     public function setBackground(string $background): self
  113.     {
  114.         $this->background $background;
  115.         return $this;
  116.     }
  117.     public function getTextColor(): ?string
  118.     {
  119.         return $this->textColor;
  120.     }
  121.     public function setTextColor(string $textColor): self
  122.     {
  123.         $this->textColor $textColor;
  124.         return $this;
  125.     }
  126.     public function getEndDate(): ?\DateTimeInterface
  127.     {
  128.         return $this->endDate;
  129.     }
  130.     public function setEndDate(?\DateTimeInterface $endDate): self
  131.     {
  132.         $this->endDate $endDate;
  133.         return $this;
  134.     }
  135.     public function getLanguage(): ?Language
  136.     {
  137.         return $this->language;
  138.     }
  139.     public function setLanguage(?Language $language): self
  140.     {
  141.         $this->language $language;
  142.         return $this;
  143.     }
  144.     /**
  145.      * @return mixed
  146.      */
  147.     public function getText()
  148.     {
  149.         return $this->text;
  150.     }
  151.     /**
  152.      * @param mixed $text
  153.      */
  154.     public function setText($text): void
  155.     {
  156.         $this->text $text;
  157.     }
  158. }