<?php
namespace 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_simulation_content")
* @ORM\Entity(repositoryClass="App\Repository\Pages\SimulationContentRepository")
* @ORM\HasLifecycleCallbacks()
* @Vich\Uploadable
*/
class SimulationContent
{
/**
* @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="expired_at", type="datetime", nullable=true, options={"comment":"Date d'expiration"})
*/
private $expiredAt;
/**
* @var string
*
* @ORM\Column(name="identifiant", type="string", length=255, nullable=true)
*/
private $identifiant;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255, nullable=true)
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="description_initial", type="text", nullable=true)
*/
private $descriptionInitial;
/**
* @var string
*
* @ORM\Column(name="description_content", type="text", nullable=true)
*/
private $descriptionContent;
/**
* @var string
*
* @ORM\Column(name="description_cta", type="text", nullable=true)
*/
private $descriptionCta;
/**
* @var string
*
* @ORM\Column(name="path_cta", type="text", nullable=true)
*/
private $pathCta;
/**
* @var string
*
* @ORM\Column(name="button_cta", type="text", nullable=true)
*/
private $buttonCta;
/**
* @var string
*
* @ORM\Column(name="title1", type="text", nullable=true)
*/
private $title1;
/**
* @var string
*
* @ORM\Column(name="subtitle1", type="text", nullable=true)
*/
private $subtitle1;
/**
* @var string
*
* @ORM\Column(name="description1", type="text", nullable=true)
*/
private $description1;
/**
* @var string
*
* @ORM\Column(name="title2", type="text", nullable=true)
*/
private $title2;
/**
* @var string
*
* @ORM\Column(name="subtitle2", type="text", nullable=true)
*/
private $subtitle2;
/**
* @var string
*
* @ORM\Column(name="description2", type="text", nullable=true)
*/
private $description2;
/**
* @var string
*
* @ORM\Column(name="title3", type="text", nullable=true)
*/
private $title3;
/**
* @var string
*
* @ORM\Column(name="subtitle3", type="text", nullable=true)
*/
private $subtitle3;
/**
* @var string
*
* @ORM\Column(name="description3", type="text", nullable=true)
*/
private $description3;
/**
* @var string
*
* @ORM\Column(name="min", type="float", length=11, nullable=true)
*/
private $min;
/**
* @var string
*
* @ORM\Column(name="min_hours", type="float", length=11, nullable=true)
*/
private $minHours;
/**
* @var string
*
* @ORM\Column(name="max", type="float", length=11, nullable=true)
*/
private $max;
/**
* @var string
*
* @ORM\Column(name="max_hours", type="float", length=11, nullable=true)
*/
private $maxHours;
/**
* @var string
*
* @ORM\Column(name="price_day", type="float", length=11, nullable=true)
*/
private $priceDay;
/**
* @var string
*
* @ORM\Column(name="price_hour", type="float", length=11, nullable=true)
*/
private $priceHour;
/**
* @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->title;
}
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 getExpiredAt(): ?\DateTimeInterface
{
return $this->expiredAt;
}
public function setExpiredAt(?\DateTimeInterface $expiredAt): static
{
$this->expiredAt = $expiredAt;
return $this;
}
public function getIdentifiant(): ?string
{
return $this->identifiant;
}
public function setIdentifiant(?string $identifiant): static
{
$this->identifiant = $identifiant;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): static
{
$this->email = $email;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): static
{
$this->title = $title;
return $this;
}
public function getDescriptionInitial(): ?string
{
return $this->descriptionInitial;
}
public function setDescriptionInitial(?string $descriptionInitial): static
{
$this->descriptionInitial = $descriptionInitial;
return $this;
}
public function getDescriptionContent(): ?string
{
return $this->descriptionContent;
}
public function setDescriptionContent(?string $descriptionContent): static
{
$this->descriptionContent = $descriptionContent;
return $this;
}
public function getDescriptionCta(): ?string
{
return $this->descriptionCta;
}
public function setDescriptionCta(?string $descriptionCta): static
{
$this->descriptionCta = $descriptionCta;
return $this;
}
public function getPathCta(): ?string
{
return $this->pathCta;
}
public function setPathCta(?string $pathCta): static
{
$this->pathCta = $pathCta;
return $this;
}
public function getButtonCta(): ?string
{
return $this->buttonCta;
}
public function setButtonCta(?string $buttonCta): static
{
$this->buttonCta = $buttonCta;
return $this;
}
public function getTitle1(): ?string
{
return $this->title1;
}
public function setTitle1(?string $title1): static
{
$this->title1 = $title1;
return $this;
}
public function getSubtitle1(): ?string
{
return $this->subtitle1;
}
public function setSubtitle1(?string $subtitle1): static
{
$this->subtitle1 = $subtitle1;
return $this;
}
public function getDescription1(): ?string
{
return $this->description1;
}
public function setDescription1(?string $description1): static
{
$this->description1 = $description1;
return $this;
}
public function getTitle2(): ?string
{
return $this->title2;
}
public function setTitle2(?string $title2): static
{
$this->title2 = $title2;
return $this;
}
public function getSubtitle2(): ?string
{
return $this->subtitle2;
}
public function setSubtitle2(?string $subtitle2): static
{
$this->subtitle2 = $subtitle2;
return $this;
}
public function getDescription2(): ?string
{
return $this->description2;
}
public function setDescription2(?string $description2): static
{
$this->description2 = $description2;
return $this;
}
public function getTitle3(): ?string
{
return $this->title3;
}
public function setTitle3(?string $title3): static
{
$this->title3 = $title3;
return $this;
}
public function getSubtitle3(): ?string
{
return $this->subtitle3;
}
public function setSubtitle3(?string $subtitle3): static
{
$this->subtitle3 = $subtitle3;
return $this;
}
public function getDescription3(): ?string
{
return $this->description3;
}
public function setDescription3(?string $description3): static
{
$this->description3 = $description3;
return $this;
}
public function getMin(): ?float
{
return $this->min;
}
public function setMin(?float $min): static
{
$this->min = $min;
return $this;
}
public function getMinHours(): ?float
{
return $this->minHours;
}
public function setMinHours(?float $minHours): static
{
$this->minHours = $minHours;
return $this;
}
public function getMax(): ?float
{
return $this->max;
}
public function setMax(?float $max): static
{
$this->max = $max;
return $this;
}
public function getMaxHours(): ?float
{
return $this->maxHours;
}
public function setMaxHours(?float $maxHours): static
{
$this->maxHours = $maxHours;
return $this;
}
public function getPriceDay(): ?float
{
return $this->priceDay;
}
public function setPriceDay(?float $priceDay): static
{
$this->priceDay = $priceDay;
return $this;
}
public function getPriceHour(): ?float
{
return $this->priceHour;
}
public function setPriceHour(?float $priceHour): static
{
$this->priceHour = $priceHour;
return $this;
}
public function getViews(): ?int
{
return $this->views;
}
public function setViews(?int $views): static
{
$this->views = $views;
return $this;
}
}