apps/backend/src/Entity/TransmissionType.php line 13

  1. <?php
  2. namespace Backend\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * TransmissionType
  6.  *
  7.  */
  8. #[ORM\Table(name'transmission_type')]
  9. #[ORM\Entity]
  10. class TransmissionType
  11. {
  12.     #[ORM\Column(name'id'type'integer'nullablefalse)]
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  15.     private $id;
  16.     #[ORM\Column(name'name'type'string'length45nullablefalse)]
  17.     private string $name;
  18.     public function __toString(): string
  19.     {
  20.         return $this->name;
  21.     }
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getName(): ?string
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function setName(string $name): self
  31.     {
  32.         $this->name $name;
  33.         return $this;
  34.     }
  35. }