src/Entity/Vetoadom/ConsultationEtat.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Vetoadom;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ConsultationEtat
  6.  *
  7.  * @ORM\Table(name="consultation_etat")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Vetoadom\ConsultationEtatRepository")
  9.  */
  10. class ConsultationEtat
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="code", type="string", length=45, nullable=false)
  24.      */
  25.     private $code;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getCode(): ?string
  31.     {
  32.         return $this->code;
  33.     }
  34.     public function setCode(string $code): self
  35.     {
  36.         $this->code $code;
  37.         return $this;
  38.     }
  39. }