src/Entity/Offer.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OfferRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=OfferRepository::class)
  8.  */
  9. class Offer
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(name="id", type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var string
  19.      * @ORM\Column(name="label", type="string", length=500)
  20.      */
  21.     private $label;
  22.     /**
  23.      * @var string
  24.      * @ORM\Column(name="description", type="string", length=1500)
  25.      */
  26.     private $description;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="image", type="string", length="500", nullable=true)
  31.      */
  32.     private $image;
  33.     /**
  34.      * @return mixed
  35.      */
  36.     public function getId()
  37.     {
  38.         return $this->id;
  39.     }
  40.     /**
  41.      * @param mixed $id
  42.      */
  43.     public function setId($id): void
  44.     {
  45.         $this->id $id;
  46.     }
  47.     /**
  48.      * @return string
  49.      */
  50.     public function getLabel(): string
  51.     {
  52.         return $this->label;
  53.     }
  54.     /**
  55.      * @param string $label
  56.      */
  57.     public function setLabel(string $label): void
  58.     {
  59.         $this->label $label;
  60.     }
  61.     /**
  62.      * @return string
  63.      */
  64.     public function getDescription(): string
  65.     {
  66.         return $this->description;
  67.     }
  68.     /**
  69.      * @param string $description
  70.      */
  71.     public function setDescription(string $description): void
  72.     {
  73.         $this->description $description;
  74.     }
  75.     /**
  76.      * @return string|null
  77.      */
  78.     public function getImage(): ?string
  79.     {
  80.         return $this->image;
  81.     }
  82.     /**
  83.      * @param string|null $image
  84.      */
  85.     public function setImage(?string $image): void
  86.     {
  87.         $this->image $image;
  88.     }
  89. }