12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace App\Entity;
- use App\Repository\RealisateurRepository;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- class Realisateur
- {
-
-
-
-
- private ?int $id = null;
-
-
- private ?string $nomComplet = null;
-
-
- private ?Collection $films = null;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function __construct()
- {
- $this->films = new \Doctrine\Common\Collections\ArrayCollection();
- }
- public function addFilm(Film $film): self
- {
- $this->films[] = $film;
- return $this;
- }
- public function removeFilm(Film $film): self
- {
- $this->films->removeElement($film);
- return $this;
- }
- public function getFilms(): Collection
- {
- return $this->films;
- }
- public function getNomComplet (): ?string
- {
- return $this->nomComplet;
- }
- public function setNomComplet(?string $nom): self
- {
- $this->nomComplet = $nom;
- return $this;
- }
- }
|