src/Entity/Pages/SimulationContent.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Pages;
  3. use App\Entity\Fiches\Articles;
  4. use Doctrine\DBAL\Types\Types;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  9. use Symfony\Component\HttpFoundation\File\File;
  10. use Symfony\Component\HttpFoundation\File\UploadedFile;
  11. use Vich\UploaderBundle\Entity\File as EmbeddedFile;
  12. /**
  13.  * Secure Content
  14.  *
  15.  * @ORM\Table("pages_simulation_content")
  16.  * @ORM\Entity(repositoryClass="App\Repository\Pages\SimulationContentRepository")
  17.  * @ORM\HasLifecycleCallbacks()
  18.  * @Vich\Uploadable
  19.  */
  20. class SimulationContent
  21. {
  22.     /**
  23.      * @var integer
  24.      *
  25.      * @ORM\Column(name="id", type="integer")
  26.      * @ORM\Id
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      */
  29.     protected $id;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
  34.      */
  35.     private $createdAt;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"})
  40.      */
  41.     private $updatedAt;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="expired_at", type="datetime", nullable=true, options={"comment":"Date d'expiration"})
  46.      */
  47.     private $expiredAt;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="identifiant", type="string", length=255, nullable=true)
  52.      */
  53.     private $identifiant;
  54.     /**
  55.      * @var string
  56.      *
  57.      * @ORM\Column(name="locale", type="string", length=255, nullable=true)
  58.      */
  59.     private $locale;
  60.     /**
  61.      * @var string
  62.      *
  63.      * @ORM\Column(name="email", type="string", length=255, nullable=true)
  64.      */
  65.     private $email;
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  70.      */
  71.     private $title;
  72.     /**
  73.      * @var string
  74.      *
  75.      * @ORM\Column(name="description_initial", type="text", nullable=true)
  76.      */
  77.     private $descriptionInitial;
  78.     /**
  79.      * @var string
  80.      *
  81.      * @ORM\Column(name="description_content", type="text", nullable=true)
  82.      */
  83.     private $descriptionContent;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="description_cta", type="text", nullable=true)
  88.      */
  89.     private $descriptionCta;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="path_cta", type="text", nullable=true)
  94.      */
  95.     private $pathCta;
  96.     /**
  97.      * @var string
  98.      *
  99.      * @ORM\Column(name="button_cta", type="text", nullable=true)
  100.      */
  101.     private $buttonCta;
  102.     /**
  103.      * @var string
  104.      *
  105.      * @ORM\Column(name="title1", type="text", nullable=true)
  106.      */
  107.     private $title1;
  108.     /**
  109.      * @var string
  110.      *
  111.      * @ORM\Column(name="subtitle1", type="text", nullable=true)
  112.      */
  113.     private $subtitle1;
  114.     /**
  115.      * @var string
  116.      *
  117.      * @ORM\Column(name="description1", type="text", nullable=true)
  118.      */
  119.     private $description1;
  120.     /**
  121.      * @var string
  122.      *
  123.      * @ORM\Column(name="title2", type="text", nullable=true)
  124.      */
  125.     private $title2;
  126.     /**
  127.      * @var string
  128.      *
  129.      * @ORM\Column(name="subtitle2", type="text", nullable=true)
  130.      */
  131.     private $subtitle2;
  132.     /**
  133.      * @var string
  134.      *
  135.      * @ORM\Column(name="description2", type="text", nullable=true)
  136.      */
  137.     private $description2;
  138.     /**
  139.      * @var string
  140.      *
  141.      * @ORM\Column(name="title3", type="text", nullable=true)
  142.      */
  143.     private $title3;
  144.     /**
  145.      * @var string
  146.      *
  147.      * @ORM\Column(name="subtitle3", type="text", nullable=true)
  148.      */
  149.     private $subtitle3;
  150.     /**
  151.      * @var string
  152.      *
  153.      * @ORM\Column(name="description3", type="text", nullable=true)
  154.      */
  155.     private $description3;
  156.     /**
  157.      * @var string
  158.      *
  159.      * @ORM\Column(name="min", type="float", length=11, nullable=true)
  160.      */
  161.     private $min;
  162.     /**
  163.      * @var string
  164.      *
  165.      * @ORM\Column(name="min_hours", type="float", length=11, nullable=true)
  166.      */
  167.     private $minHours;
  168.     /**
  169.      * @var string
  170.      *
  171.      * @ORM\Column(name="max", type="float", length=11, nullable=true)
  172.      */
  173.     private $max;
  174.     /**
  175.      * @var string
  176.      *
  177.      * @ORM\Column(name="max_hours", type="float", length=11, nullable=true)
  178.      */
  179.     private $maxHours;
  180.     /**
  181.      * @var string
  182.      *
  183.      * @ORM\Column(name="price_day", type="float", length=11, nullable=true)
  184.      */
  185.     private $priceDay;
  186.     /**
  187.      * @var string
  188.      *
  189.      * @ORM\Column(name="price_hour", type="float", length=11, nullable=true)
  190.      */
  191.     private $priceHour;
  192.     /**
  193.      * @var string
  194.      *
  195.      * @ORM\Column(name="views", type="integer", length=11, nullable=true)
  196.      */
  197.     private $views;
  198.     /**
  199.      * @ORM\PrePersist
  200.      */
  201.     public function setCreatedAtValue(): void
  202.     {
  203.         $this->setCreatedAt(new \DateTime("now"));
  204.         $this->setUpdatedAt(new \DateTime("now"));
  205.     }
  206.     /**
  207.      * @ORM\PreUpdate
  208.      */
  209.     public function setUpdatedAtValue(): void
  210.     {
  211.         $this->setUpdatedAt(new \DateTime("now"));
  212.     }
  213.     public function __toString()
  214.     {
  215.         return (string)$this->title;
  216.     }
  217.     public function getId(): ?int
  218.     {
  219.         return $this->id;
  220.     }
  221.     public function getCreatedAt(): ?\DateTimeInterface
  222.     {
  223.         return $this->createdAt;
  224.     }
  225.     public function setCreatedAt(?\DateTimeInterface $createdAt): static
  226.     {
  227.         $this->createdAt $createdAt;
  228.         return $this;
  229.     }
  230.     public function getUpdatedAt(): ?\DateTimeInterface
  231.     {
  232.         return $this->updatedAt;
  233.     }
  234.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): static
  235.     {
  236.         $this->updatedAt $updatedAt;
  237.         return $this;
  238.     }
  239.     public function getExpiredAt(): ?\DateTimeInterface
  240.     {
  241.         return $this->expiredAt;
  242.     }
  243.     public function setExpiredAt(?\DateTimeInterface $expiredAt): static
  244.     {
  245.         $this->expiredAt $expiredAt;
  246.         return $this;
  247.     }
  248.     public function getIdentifiant(): ?string
  249.     {
  250.         return $this->identifiant;
  251.     }
  252.     public function setIdentifiant(?string $identifiant): static
  253.     {
  254.         $this->identifiant $identifiant;
  255.         return $this;
  256.     }
  257.     public function getEmail(): ?string
  258.     {
  259.         return $this->email;
  260.     }
  261.     public function setEmail(?string $email): static
  262.     {
  263.         $this->email $email;
  264.         return $this;
  265.     }
  266.     public function getTitle(): ?string
  267.     {
  268.         return $this->title;
  269.     }
  270.     public function setTitle(?string $title): static
  271.     {
  272.         $this->title $title;
  273.         return $this;
  274.     }
  275.     public function getDescriptionInitial(): ?string
  276.     {
  277.         return $this->descriptionInitial;
  278.     }
  279.     public function setDescriptionInitial(?string $descriptionInitial): static
  280.     {
  281.         $this->descriptionInitial $descriptionInitial;
  282.         return $this;
  283.     }
  284.     public function getDescriptionContent(): ?string
  285.     {
  286.         return $this->descriptionContent;
  287.     }
  288.     public function setDescriptionContent(?string $descriptionContent): static
  289.     {
  290.         $this->descriptionContent $descriptionContent;
  291.         return $this;
  292.     }
  293.     public function getDescriptionCta(): ?string
  294.     {
  295.         return $this->descriptionCta;
  296.     }
  297.     public function setDescriptionCta(?string $descriptionCta): static
  298.     {
  299.         $this->descriptionCta $descriptionCta;
  300.         return $this;
  301.     }
  302.     public function getPathCta(): ?string
  303.     {
  304.         return $this->pathCta;
  305.     }
  306.     public function setPathCta(?string $pathCta): static
  307.     {
  308.         $this->pathCta $pathCta;
  309.         return $this;
  310.     }
  311.     public function getButtonCta(): ?string
  312.     {
  313.         return $this->buttonCta;
  314.     }
  315.     public function setButtonCta(?string $buttonCta): static
  316.     {
  317.         $this->buttonCta $buttonCta;
  318.         return $this;
  319.     }
  320.     public function getTitle1(): ?string
  321.     {
  322.         return $this->title1;
  323.     }
  324.     public function setTitle1(?string $title1): static
  325.     {
  326.         $this->title1 $title1;
  327.         return $this;
  328.     }
  329.     public function getSubtitle1(): ?string
  330.     {
  331.         return $this->subtitle1;
  332.     }
  333.     public function setSubtitle1(?string $subtitle1): static
  334.     {
  335.         $this->subtitle1 $subtitle1;
  336.         return $this;
  337.     }
  338.     public function getDescription1(): ?string
  339.     {
  340.         return $this->description1;
  341.     }
  342.     public function setDescription1(?string $description1): static
  343.     {
  344.         $this->description1 $description1;
  345.         return $this;
  346.     }
  347.     public function getTitle2(): ?string
  348.     {
  349.         return $this->title2;
  350.     }
  351.     public function setTitle2(?string $title2): static
  352.     {
  353.         $this->title2 $title2;
  354.         return $this;
  355.     }
  356.     public function getSubtitle2(): ?string
  357.     {
  358.         return $this->subtitle2;
  359.     }
  360.     public function setSubtitle2(?string $subtitle2): static
  361.     {
  362.         $this->subtitle2 $subtitle2;
  363.         return $this;
  364.     }
  365.     public function getDescription2(): ?string
  366.     {
  367.         return $this->description2;
  368.     }
  369.     public function setDescription2(?string $description2): static
  370.     {
  371.         $this->description2 $description2;
  372.         return $this;
  373.     }
  374.     public function getTitle3(): ?string
  375.     {
  376.         return $this->title3;
  377.     }
  378.     public function setTitle3(?string $title3): static
  379.     {
  380.         $this->title3 $title3;
  381.         return $this;
  382.     }
  383.     public function getSubtitle3(): ?string
  384.     {
  385.         return $this->subtitle3;
  386.     }
  387.     public function setSubtitle3(?string $subtitle3): static
  388.     {
  389.         $this->subtitle3 $subtitle3;
  390.         return $this;
  391.     }
  392.     public function getDescription3(): ?string
  393.     {
  394.         return $this->description3;
  395.     }
  396.     public function setDescription3(?string $description3): static
  397.     {
  398.         $this->description3 $description3;
  399.         return $this;
  400.     }
  401.     public function getMin(): ?float
  402.     {
  403.         return $this->min;
  404.     }
  405.     public function setMin(?float $min): static
  406.     {
  407.         $this->min $min;
  408.         return $this;
  409.     }
  410.     public function getMinHours(): ?float
  411.     {
  412.         return $this->minHours;
  413.     }
  414.     public function setMinHours(?float $minHours): static
  415.     {
  416.         $this->minHours $minHours;
  417.         return $this;
  418.     }
  419.     public function getMax(): ?float
  420.     {
  421.         return $this->max;
  422.     }
  423.     public function setMax(?float $max): static
  424.     {
  425.         $this->max $max;
  426.         return $this;
  427.     }
  428.     public function getMaxHours(): ?float
  429.     {
  430.         return $this->maxHours;
  431.     }
  432.     public function setMaxHours(?float $maxHours): static
  433.     {
  434.         $this->maxHours $maxHours;
  435.         return $this;
  436.     }
  437.     public function getPriceDay(): ?float
  438.     {
  439.         return $this->priceDay;
  440.     }
  441.     public function setPriceDay(?float $priceDay): static
  442.     {
  443.         $this->priceDay $priceDay;
  444.         return $this;
  445.     }
  446.     public function getPriceHour(): ?float
  447.     {
  448.         return $this->priceHour;
  449.     }
  450.     public function setPriceHour(?float $priceHour): static
  451.     {
  452.         $this->priceHour $priceHour;
  453.         return $this;
  454.     }
  455.     public function getViews(): ?int
  456.     {
  457.         return $this->views;
  458.     }
  459.     public function setViews(?int $views): static
  460.     {
  461.         $this->views $views;
  462.         return $this;
  463.     }
  464.     public function getLocale(): ?string
  465.     {
  466.         return $this->locale;
  467.     }
  468.     public function setLocale(?string $locale): static
  469.     {
  470.         $this->locale $locale;
  471.         return $this;
  472.     }
  473. }