<?php
namespace App\Entity;
use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @Doctrine\ORM\Mapping\Entity
* @Doctrine\ORM\Mapping\Table(name="top_information")
*/
class TopInformation implements BlameableInterface, TimestampableInterface, SoftDeletableInterface {
use BlameableTrait;
use TimestampableTrait;
use SoftDeletableTrait;
/**
* @Doctrine\ORM\Mapping\Id
* @Doctrine\ORM\Mapping\Column(type="integer")
* @Doctrine\ORM\Mapping\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255)
*/
protected $name;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Language")
* @ORM\JoinColumn(name="language", referencedColumnName="id")
*/
protected $language;
/**
* @var boolean
*
* @ORM\Column(name="is_active", type="boolean", nullable=true)
*/
private $active;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $text;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
*/
protected $url;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
*/
protected $background;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255, nullable=true)
*/
protected $textColor;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): self
{
$this->active = $active;
return $this;
}
public function getTextLeft(): ?string
{
return $this->textLeft;
}
public function setTextLeft(string $textLeft): self
{
$this->textLeft = $textLeft;
return $this;
}
public function getTextRight(): ?string
{
return $this->textRight;
}
public function setTextRight(string $textRight): self
{
$this->textRight = $textRight;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(string $url): self
{
$this->url = $url;
return $this;
}
public function getBackground(): ?string
{
return $this->background;
}
public function setBackground(string $background): self
{
$this->background = $background;
return $this;
}
public function getTextColor(): ?string
{
return $this->textColor;
}
public function setTextColor(string $textColor): self
{
$this->textColor = $textColor;
return $this;
}
public function getEndDate(): ?\DateTimeInterface
{
return $this->endDate;
}
public function setEndDate(?\DateTimeInterface $endDate): self
{
$this->endDate = $endDate;
return $this;
}
public function getLanguage(): ?Language
{
return $this->language;
}
public function setLanguage(?Language $language): self
{
$this->language = $language;
return $this;
}
/**
* @return mixed
*/
public function getText()
{
return $this->text;
}
/**
* @param mixed $text
*/
public function setText($text): void
{
$this->text = $text;
}
}