src/Entity/FirstGenerationStatus.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\FirstGenerationStatusRepository")
  7.  */
  8. class FirstGenerationStatus
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      * @Assert\NotBlank()
  19.      * @Assert\Length(max=255)
  20.      */
  21.     private $value;
  22.     public function __toString(): string
  23.     {
  24.         return $this->getValue();
  25.     }
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getValue(): string
  31.     {
  32.         return $this->value;
  33.     }
  34.     public function setValue(string $value): self
  35.     {
  36.         $this->value $value;
  37.         return $this;
  38.     }
  39. }