<?phpnamespace App\Entity\Seo;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;/** * Redirection * * @ORM\Table("seo_redirection") * @ORM\Entity(repositoryClass="App\Repository\Seo\RedirectionRepository") * @ORM\HasLifecycleCallbacks() */class Redirection{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"}) */ private $createdAt; /** * @var string * * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"}) */ private $updatedAt; /** * @var string * * @ORM\Column(name="title", type="string", length=555, nullable=true) */ private $title; /** * @var string * * @ORM\Column(name="slug", type="string", length=555, nullable=true) */ private $slug; /** * @var string * * @ORM\Column(name="url", type="string", length=555, nullable=true) */ private $url; /** * @var string * * @ORM\Column(name="visibility", type="boolean", nullable=true) */ private $visibility; /** * @var string * * @ORM\Column(name="type", type="integer", length=11, nullable=true) */ private $type; /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); $this->setUpdatedAt(new \DateTime("now")); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->setUpdatedAt(new \DateTime("now")); } public function __toString() { return $this->title; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getSlug(): ?string { return $this->slug; } public function setSlug(string $slug): self { $this->slug = $slug; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl(string $url): self { $this->url = $url; return $this; } public function getVisibility(): ?bool { return $this->visibility; } public function setVisibility(bool $visibility): self { $this->visibility = $visibility; return $this; } public function getType(): ?int { return $this->type; } public function setType(int $type): self { $this->type = $type; return $this; } public function isVisibility(): ?bool { return $this->visibility; }}