src/Entity/DomainMusees.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass\App\Repository\DomainMuseesRepository::class)]
  5. class DomainMusees
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private int $id;
  11.     #[ORM\Column(type'string'length255nullabletrue)]
  12.     private ?string $namenull;
  13.     public function getId(): ?int
  14.     {
  15.         return $this->id;
  16.     }
  17.     public function getName(): ?string
  18.     {
  19.         return $this->name;
  20.     }
  21.     public function setName(?string $name): self
  22.     {
  23.         $this->name $name;
  24.         return $this;
  25.     }
  26. }