src/Entity/Actuv2Infographie.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\Actuv2InfographieRepository;
  5. use Symfony\Component\Validator\Constraints\Date;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. /**
  9.  * Actuv2Infographie
  10.  *
  11.  * @Vich\Uploadable
  12.  */
  13. #[ORM\Table(name'actuv2_infographie')]
  14. #[ORM\Entity(repositoryClassActuv2InfographieRepository::class)]
  15. class Actuv2Infographie
  16. {
  17.     /**
  18.      * @var int
  19.      *
  20.      */
  21.     #[ORM\Column(name'id'type'bigint'nullablefalse)]
  22.     #[ORM\Id]
  23.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  24.     private $id;
  25.     /**
  26.      * @var \DateTime|null
  27.      *
  28.      */
  29.     #[ORM\Column(name'date'type'date'nullabletrueoptions: ['comment' => 'pĂ©riode'])]
  30.     private $date;
  31.     /**
  32.      * @var string
  33.      *
  34.      */
  35.     #[ORM\Column(name'image1'type'string'length255nullabletrueoptions: ['comment' => 'format desktop panoramique, background : f6f5f2'])]
  36.     private $image1 '';
  37.     /**
  38.      * @var string
  39.      *
  40.      */
  41.     #[ORM\Column(name'image2'type'string'length255nullabletrueoptions: ['comment' => 'format lightbox paysage'])]
  42.     private $image2 '';
  43.     /**
  44.      * @var string
  45.      *
  46.      */
  47.     #[ORM\Column(name'image3'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  48.     private $image3 '';
  49.     /**
  50.      * @var string
  51.      *
  52.      */
  53.     #[ORM\Column(name'image4'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  54.     private $image4 '';
  55.     /**
  56.      * @var string
  57.      *
  58.      */
  59.     #[ORM\Column(name'image5'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  60.     private $image5 '';
  61.     /**
  62.      * @var string
  63.      *
  64.      */
  65.     #[ORM\Column(name'image6'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  66.     private $image6 '';
  67.     /**
  68.      * @var string
  69.      *
  70.      */
  71.     #[ORM\Column(name'image7'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  72.     private $image7 '';
  73.     /**
  74.      * @var string
  75.      *
  76.      */
  77.     #[ORM\Column(name'image8'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  78.     private $image8 '';
  79.     /**
  80.      * @var string
  81.      *
  82.      */
  83.     #[ORM\Column(name'image9'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  84.     private $image9 '';
  85.     /**
  86.      * @var string
  87.      *
  88.      */
  89.     #[ORM\Column(name'image10'type'string'length255nullabletrueoptions: ['comment' => 'format mobile portrait'])]
  90.     private $image10 '';
  91.     /**
  92.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image1")
  93.      * @var File|null
  94.      */
  95.     private $tmpImage1 null;
  96.     /**
  97.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image2")
  98.      * @var File|null
  99.      */
  100.     private $tmpImage2 null;
  101.     /**
  102.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image3")
  103.      * @var File|null
  104.      */
  105.     private $tmpImage3 null;
  106.     /**
  107.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image4")
  108.      * @var File|null
  109.      */
  110.     private $tmpImage4 null;
  111.     /**
  112.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image5")
  113.      * @var File|null
  114.      */
  115.     private $tmpImage5 null;
  116.     /**
  117.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image6")
  118.      * @var File|null
  119.      */
  120.     private $tmpImage6 null;
  121.     /**
  122.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image7")
  123.      * @var File|null
  124.      */
  125.     private $tmpImage7 null;
  126.     /**
  127.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image8")
  128.      * @var File|null
  129.      */
  130.     private $tmpImage8 null;
  131.     /**
  132.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image9")
  133.      * @var File|null
  134.      */
  135.     private $tmpImage9 null;
  136.     /**
  137.      * @Vich\UploadableField(mapping="actuv2infographie", fileNameProperty="image10")
  138.      * @var File|null
  139.      */
  140.     private $tmpImage10 null;
  141.     #[ORM\Column(type'datetime'nullabletrue)]
  142.     private $updatedAt;
  143.     public function getId(): ?string
  144.     {
  145.         return $this->id;
  146.     }
  147.     public function getDate(): ?\DateTimeInterface
  148.     {
  149.         return $this->date;
  150.     }
  151.     public function setDate(?\DateTimeInterface $date): self
  152.     {
  153.         $this->date $date;
  154.         return $this;
  155.     }
  156.     public function getImage1(): ?string
  157.     {
  158.         return $this->image1;
  159.     }
  160.     public function setImage1(?string $image1): self
  161.     {
  162.         $this->image1 is_null($image1) ? "" $image1;
  163.         return $this;
  164.     }
  165.     public function setTmpImage1(?File $tmpImage1 null): void
  166.     {
  167.         $this->tmpImage1 $tmpImage1;
  168.         $this->updatedAt = new \DateTime('now');
  169.     }
  170.     public function getTmpImage1(): ?File
  171.     {
  172.         return $this->tmpImage1;
  173.     }
  174.     public function getImage2(): ?string
  175.     {
  176.         return $this->image2;
  177.     }
  178.     public function setImage2(?string $image2): self
  179.     {
  180.         $this->image2 is_null($image2) ? "" $image2;
  181.         return $this;
  182.     }
  183.     public function setTmpImage2(?File $tmpImage2 null): void
  184.     {
  185.         $this->tmpImage2 $tmpImage2;
  186.         $this->updatedAt = new \DateTime('now');
  187.     }
  188.     public function getTmpImage2(): ?File
  189.     {
  190.         return $this->tmpImage2;
  191.     }
  192.     public function getImage3(): ?string
  193.     {
  194.         return $this->image3;
  195.     }
  196.     public function setImage3(?string $image3): self
  197.     {
  198.         $this->image3 is_null($image3) ? "" $image3;
  199.         return $this;
  200.     }
  201.     public function setTmpImage3(?File $tmpImage3 null): void
  202.     {
  203.         $this->tmpImage3 $tmpImage3;
  204.         $this->updatedAt = new \DateTime('now');
  205.     }
  206.     public function getTmpImage3(): ?File
  207.     {
  208.         return $this->tmpImage3;
  209.     }
  210.     public function getImage4(): ?string
  211.     {
  212.         return $this->image4;
  213.     }
  214.     public function setImage4(?string $image4): self
  215.     {
  216.         $this->image4 is_null($image4) ? "" $image4;
  217.         return $this;
  218.     }
  219.     public function setTmpImage4(?File $tmpImage4 null): void
  220.     {
  221.         $this->tmpImage4 $tmpImage4;
  222.         $this->updatedAt = new \DateTime('now');
  223.     }
  224.     public function getTmpImage4(): ?File
  225.     {
  226.         return $this->tmpImage4;
  227.     }
  228.     public function getImage5(): ?string
  229.     {
  230.         return $this->image5;
  231.     }
  232.     public function setImage5(?string $image5): self
  233.     {
  234.         $this->image5 is_null($image5) ? "" $image5;
  235.         return $this;
  236.     }
  237.     public function setTmpImage5(?File $tmpImage5 null): void
  238.     {
  239.         $this->tmpImage5 $tmpImage5;
  240.         $this->updatedAt = new \DateTime('now');
  241.     }
  242.     public function getTmpImage5(): ?File
  243.     {
  244.         return $this->tmpImage5;
  245.     }
  246.     public function getImage6(): ?string
  247.     {
  248.         return $this->image6;
  249.     }
  250.     public function setImage6(?string $image6): self
  251.     {
  252.         $this->image6 is_null($image6) ? "" $image6;
  253.         return $this;
  254.     }
  255.     public function setTmpImage6(?File $tmpImage6 null): void
  256.     {
  257.         $this->tmpImage6 $tmpImage6;
  258.         $this->updatedAt = new \DateTime('now');
  259.     }
  260.     public function getTmpImage6(): ?File
  261.     {
  262.         return $this->tmpImage6;
  263.     }
  264.     public function getImage7(): ?string
  265.     {
  266.         return $this->image7;
  267.     }
  268.     public function setImage7(?string $image7): self
  269.     {
  270.         $this->image7 is_null($image7) ? "" $image7;
  271.         return $this;
  272.     }
  273.     public function setTmpImage7(?File $tmpImage7 null): void
  274.     {
  275.         $this->tmpImage7 $tmpImage7;
  276.         $this->updatedAt = new \DateTime('now');
  277.     }
  278.     public function getTmpImage7(): ?File
  279.     {
  280.         return $this->tmpImage7;
  281.     }
  282.     public function getImage8(): ?string
  283.     {
  284.         return $this->image8;
  285.     }
  286.     public function setImage8(?string $image8): self
  287.     {
  288.         $this->image8 is_null($image8) ? "" $image8;
  289.         return $this;
  290.     }
  291.     public function setTmpImage8(?File $tmpImage8 null): void
  292.     {
  293.         $this->tmpImage8 $tmpImage8;
  294.         $this->updatedAt = new \DateTime('now');
  295.     }
  296.     public function getTmpImage8(): ?File
  297.     {
  298.         return $this->tmpImage8;
  299.     }
  300.     public function getImage9(): ?string
  301.     {
  302.         return $this->image9;
  303.     }
  304.     public function setImage9(?string $image9): self
  305.     {
  306.         $this->image9 is_null($image9) ? "" $image9;
  307.         return $this;
  308.     }
  309.     public function setTmpImage9(?File $tmpImage9 null): void
  310.     {
  311.         $this->tmpImage9 $tmpImage9;
  312.         $this->updatedAt = new \DateTime('now');
  313.     }
  314.     public function getTmpImage9(): ?File
  315.     {
  316.         return $this->tmpImage9;
  317.     }
  318.     public function getImage10(): ?string
  319.     {
  320.         return $this->image10;
  321.     }
  322.     public function setImage10(?string $image10): self
  323.     {
  324.         $this->image10 is_null($image10) ? "" $image10;
  325.         return $this;
  326.     }
  327.     public function setTmpImage10(?File $tmpImage10 null): void
  328.     {
  329.         $this->tmpImage10 $tmpImage10;
  330.         $this->updatedAt = new \DateTime('now');
  331.     }
  332.     public function getTmpImage10(): ?File
  333.     {
  334.         return $this->tmpImage10;
  335.     }
  336.     public function getUpdatedAt(): ?\DateTimeInterface
  337.     {
  338.         return $this->updatedAt;
  339.     }
  340.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  341.     {
  342.         $this->updatedAt $updatedAt;
  343.         return $this;
  344.     }
  345. }