src/Flexy/FrontBundle/Entity/Slide.php line 11

  1. <?php
  2. namespace App\Flexy\FrontBundle\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Flexy\FrontBundle\Repository\SlideRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ApiResource]
  7. #[ORM\Entity(repositoryClassSlideRepository::class)]
  8. class Slide
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private ?string $image null;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private $content;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private ?string $grandTitre null;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private ?string $petitTitre null;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private ?string $textePrix null;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private ?string $lien null;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private ?string $titreBtn null;
  28.     #[ORM\ManyToOne(targetEntitySlider::class, inversedBy'slides')]
  29.     private $slider;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private ?bool $isEnabled null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getImage(): ?string
  37.     {
  38.         return $this->image;
  39.     }
  40.     public function setImage(?string $image): self
  41.     {
  42.         $this->image $image;
  43.         return $this;
  44.     }
  45.     public function getGrandTitre(): ?string
  46.     {
  47.         return $this->grandTitre;
  48.     }
  49.     public function setGrandTitre(?string $grandTitre): self
  50.     {
  51.         $this->grandTitre $grandTitre;
  52.         return $this;
  53.     }
  54.     public function getPetitTitre(): ?string
  55.     {
  56.         return $this->petitTitre;
  57.     }
  58.     public function setPetitTitre(?string $petitTitre): self
  59.     {
  60.         $this->petitTitre $petitTitre;
  61.         return $this;
  62.     }
  63.     public function getTextePrix(): ?string
  64.     {
  65.         return $this->textePrix;
  66.     }
  67.     public function setTextePrix(?string $textePrix): self
  68.     {
  69.         $this->textePrix $textePrix;
  70.         return $this;
  71.     }
  72.     public function getLien(): ?string
  73.     {
  74.         return $this->lien;
  75.     }
  76.     public function setLien(?string $lien): self
  77.     {
  78.         $this->lien $lien;
  79.         return $this;
  80.     }
  81.     public function getTitreBtn(): ?string
  82.     {
  83.         return $this->titreBtn;
  84.     }
  85.     public function setTitreBtn(?string $titreBtn): self
  86.     {
  87.         $this->titreBtn $titreBtn;
  88.         return $this;
  89.     }
  90.     public function getIsEnabled(): ?bool
  91.     {
  92.         return $this->isEnabled;
  93.     }
  94.     public function setIsEnabled(?bool $isEnabled): self
  95.     {
  96.         $this->isEnabled $isEnabled;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get the value of slider
  101.      */ 
  102.     public function getSlider()
  103.     {
  104.         return $this->slider;
  105.     }
  106.     /**
  107.      * Set the value of slider
  108.      *
  109.      * @return  self
  110.      */ 
  111.     public function setSlider($slider)
  112.     {
  113.         $this->slider $slider;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get the value of content
  118.      */ 
  119.     public function getContent()
  120.     {
  121.         return $this->content;
  122.     }
  123.     /**
  124.      * Set the value of content
  125.      *
  126.      * @return  self
  127.      */ 
  128.     public function setContent($content)
  129.     {
  130.         $this->content $content;
  131.         return $this;
  132.     }
  133. }