<?phpnamespace App\Entity\Pages;use App\Entity\Fiches\Articles;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;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Symfony\Component\HttpFoundation\File\File;use Symfony\Component\HttpFoundation\File\UploadedFile;use Vich\UploaderBundle\Entity\File as EmbeddedFile;/** * Secure Content * * @ORM\Table("pages_secure_content") * @ORM\Entity(repositoryClass="App\Repository\Pages\SecureContentRepository") * @ORM\HasLifecycleCallbacks() * @Vich\Uploadable */class SecureContent{ /** * @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="locale", type="string", length=255, nullable=true) */ private $locale; /** * @var string * * @ORM\Column(name="identifiant", type="text", nullable=true) */ private $identifiant; /** * @var string * * @ORM\Column(name="identifiant_key", type="text", nullable=true) */ private $identifiantKey; /** * @var string * * @ORM\Column(name="title", type="string", length=255, nullable=true) */ private $title; /** * @var string * * @ORM\Column(name="description", type="text", nullable=true) */ private $description; /** * @var string * * @ORM\Column(name="description_content", type="text", nullable=true) */ private $descriptionContent; /** * @var string * * @ORM\Column(name="views", type="integer", length=11, nullable=true) */ private $views; /** * @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 (string)$this->identifiant; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getIdentifiant(): ?string { return $this->identifiant; } public function setIdentifiant(?string $identifiant): static { $this->identifiant = $identifiant; return $this; } public function getIdentifiantKey(): ?string { return $this->identifiantKey; } public function setIdentifiantKey(?string $identifiantKey): static { $this->identifiantKey = $identifiantKey; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): static { $this->title = $title; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): static { $this->description = $description; return $this; } public function getDescriptionContent(): ?string { return $this->descriptionContent; } public function setDescriptionContent(?string $descriptionContent): static { $this->descriptionContent = $descriptionContent; return $this; } public function getViews(): ?int { return $this->views; } public function setViews(?int $views): static { $this->views = $views; return $this; } public function getLocale(): ?string { return $this->locale; } public function setLocale(?string $locale): static { $this->locale = $locale; return $this; }}