src/Entity/Perruche.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PerrucheRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPerrucheRepository::class)]
  7. class Perruche
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $name null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $description null;
  17.     #[ORM\Column]
  18.     private ?int $affection null;
  19.     #[ORM\Column]
  20.     private ?int $formation null;
  21.     #[ORM\Column]
  22.     private ?int $chant null;
  23.     #[ORM\Column(length255nullable:true)]
  24.     private ?string $image null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $creationDate null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $modificationDate null;
  29.     #[ORM\Column]
  30.     private ?int $number null;
  31.     #[ORM\Column]
  32.     private ?bool $isActive true;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  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): self
  51.     {
  52.         $this->description $description;
  53.         return $this;
  54.     }
  55.     public function getAffection(): ?int
  56.     {
  57.         return $this->affection;
  58.     }
  59.     public function setAffection(int $affection): self
  60.     {
  61.         $this->affection $affection;
  62.         return $this;
  63.     }
  64.     public function getFormation(): ?int
  65.     {
  66.         return $this->formation;
  67.     }
  68.     public function setFormation(int $formation): self
  69.     {
  70.         $this->formation $formation;
  71.         return $this;
  72.     }
  73.     public function getChant(): ?int
  74.     {
  75.         return $this->chant;
  76.     }
  77.     public function setChant(int $chant): self
  78.     {
  79.         $this->chant $chant;
  80.         return $this;
  81.     }
  82.     public function getImage(): ?string
  83.     {
  84.         return $this->image;
  85.     }
  86.     public function setImage(string $image): self
  87.     {
  88.         $this->image $image;
  89.         return $this;
  90.     }
  91.     public function getCreationDate(): ?string
  92.     {
  93.         return $this->creationDate;
  94.     }
  95.     public function setCreationDate(string $creationDate): self
  96.     {
  97.         $this->creationDate $creationDate;
  98.         return $this;
  99.     }
  100.     public function getModificationDate(): ?string
  101.     {
  102.         return $this->modificationDate;
  103.     }
  104.     public function setModificationDate(string $modificationDate): self
  105.     {
  106.         $this->modificationDate $modificationDate;
  107.         return $this;
  108.     }
  109.     public function getNumber(): ?int
  110.     {
  111.         return $this->number;
  112.     }
  113.     public function setNumber(int $number): self
  114.     {
  115.         $this->number $number;
  116.         return $this;
  117.     }
  118.     public function isIsActive(): ?bool
  119.     {
  120.         return $this->isActive;
  121.     }
  122.     public function setIsActive(bool $isActive): self
  123.     {
  124.         $this->isActive $isActive;
  125.         return $this;
  126.     }
  127. }