src/Entity/CodeTransporteur.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CodeTransporteurRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCodeTransporteurRepository::class)]
  6. class CodeTransporteur
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length10nullabletrue)]
  13.     private ?string $code1 null;
  14.     #[ORM\Column(length10nullabletrue)]
  15.     private ?string $code2 null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $description null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?int $id_order_state null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getCode1(): ?string
  25.     {
  26.         return $this->code1;
  27.     }
  28.     public function setCode1(?string $code1): static
  29.     {
  30.         $this->code1 $code1;
  31.         return $this;
  32.     }
  33.     public function getCode2(): ?string
  34.     {
  35.         return $this->code2;
  36.     }
  37.     public function setCode2(?string $code2): static
  38.     {
  39.         $this->code2 $code2;
  40.         return $this;
  41.     }
  42.     public function getDescription(): ?string
  43.     {
  44.         return $this->description;
  45.     }
  46.     public function setDescription(?string $description): static
  47.     {
  48.         $this->description $description;
  49.         return $this;
  50.     }
  51.     public function getIdOrderState(): ?int
  52.     {
  53.         return $this->id_order_state;
  54.     }
  55.     public function setIdOrderState(?int $id_order_state): static
  56.     {
  57.         $this->id_order_state $id_order_state;
  58.         return $this;
  59.     }
  60. }