src/Flexy/FrontBundle/Entity/Slide.php line 11
<?php
namespace App\Flexy\FrontBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Flexy\FrontBundle\Repository\SlideRepository;
use Doctrine\ORM\Mapping as ORM;
#[ApiResource]
#[ORM\Entity(repositoryClass: SlideRepository::class)]
class Slide
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $image = null;
#[ORM\Column(type: 'text', nullable: true)]
private $content;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $grandTitre = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $petitTitre = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $textePrix = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $lien = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $titreBtn = null;
#[ORM\ManyToOne(targetEntity: Slider::class, inversedBy: 'slides')]
private $slider;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $isEnabled = null;
public function getId(): ?int
{
return $this->id;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(?string $image): self
{
$this->image = $image;
return $this;
}
public function getGrandTitre(): ?string
{
return $this->grandTitre;
}
public function setGrandTitre(?string $grandTitre): self
{
$this->grandTitre = $grandTitre;
return $this;
}
public function getPetitTitre(): ?string
{
return $this->petitTitre;
}
public function setPetitTitre(?string $petitTitre): self
{
$this->petitTitre = $petitTitre;
return $this;
}
public function getTextePrix(): ?string
{
return $this->textePrix;
}
public function setTextePrix(?string $textePrix): self
{
$this->textePrix = $textePrix;
return $this;
}
public function getLien(): ?string
{
return $this->lien;
}
public function setLien(?string $lien): self
{
$this->lien = $lien;
return $this;
}
public function getTitreBtn(): ?string
{
return $this->titreBtn;
}
public function setTitreBtn(?string $titreBtn): self
{
$this->titreBtn = $titreBtn;
return $this;
}
public function getIsEnabled(): ?bool
{
return $this->isEnabled;
}
public function setIsEnabled(?bool $isEnabled): self
{
$this->isEnabled = $isEnabled;
return $this;
}
/**
* Get the value of slider
*/
public function getSlider()
{
return $this->slider;
}
/**
* Set the value of slider
*
* @return self
*/
public function setSlider($slider)
{
$this->slider = $slider;
return $this;
}
/**
* Get the value of content
*/
public function getContent()
{
return $this->content;
}
/**
* Set the value of content
*
* @return self
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
}