src/Entity/MatiereCycle.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MatiereCycleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMatiereCycleRepository::class)]
  6. class MatiereCycle
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'matiereCycles')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?Categorie $matiere null;
  15.     #[ORM\Column]
  16.     private ?int $cycle null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $name null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getMatiere(): ?Categorie
  24.     {
  25.         return $this->matiere;
  26.     }
  27.     public function setMatiere(?Categorie $matiere): static
  28.     {
  29.         $this->matiere $matiere;
  30.         return $this;
  31.     }
  32.     public function getCycle(): ?int
  33.     {
  34.         return $this->cycle;
  35.     }
  36.     public function setCycle(int $cycle): static
  37.     {
  38.         $this->cycle $cycle;
  39.         return $this;
  40.     }
  41.     public function getName(): ?string
  42.     {
  43.         return $this->name;
  44.     }
  45.     public function setName(string $name): static
  46.     {
  47.         $this->name $name;
  48.         return $this;
  49.     }
  50. }