src/Entity/Orientation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrientationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: OrientationRepository::class)]
  7. class Orientation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id = null;
  13.     #[ORM\Column(length: 255)]
  14.     private ?string $code = null;
  15.     #[ORM\Column(length: 255)]
  16.     private ?string $name = null;
  17.     #[ORM\Column(type: Types::TEXT)]
  18.     private ?string $description = null;
  19.     #[ORM\ManyToOne(inversedBy: 'orientation')]
  20.     private ?Enjeux $enjeux = null;
  21.     public function __construct() {
  22.         $this->code = 'OR1-';
  23.     }
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getCode(): ?string
  29.     {
  30.         return $this->code;
  31.     }
  32.     public function setCode(string $code): static
  33.     {
  34.         $this->code = $code;
  35.         return $this;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): static
  42.     {
  43.         $this->name = $name;
  44.         return $this;
  45.     }
  46.     public function getDescription(): ?string
  47.     {
  48.         return $this->description;
  49.     }
  50.     public function setDescription(string $description): static
  51.     {
  52.         $this->description = $description;
  53.         return $this;
  54.     }
  55.     public function getEnjeux(): ?Enjeux
  56.     {
  57.         return $this->enjeux;
  58.     }
  59.     public function setEnjeux(?Enjeux $enjeux): static
  60.     {
  61.         $this->enjeux = $enjeux;
  62.         return $this;
  63.     }
  64. }