src/Entity/Status.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StatusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=StatusRepository::class)
  8.  */
  9. class Status
  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=180)
  20.      */
  21.     private $label;
  22.     /**
  23.      * @return mixed
  24.      */
  25.     public function getId()
  26.     {
  27.         return $this->id;
  28.     }
  29.     /**
  30.      * @param mixed $id
  31.      */
  32.     public function setId($id): void
  33.     {
  34.         $this->id $id;
  35.     }
  36.     /**
  37.      * @return string
  38.      */
  39.     public function getLabel(): string
  40.     {
  41.         return $this->label;
  42.     }
  43.     /**
  44.      * @param string $label
  45.      */
  46.     public function setLabel(string $label): void
  47.     {
  48.         $this->label $label;
  49.     }
  50. }