src/Infrastructure/Doctrine/Entity/DoctrineCentre.php line 20

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Infrastructure\Doctrine\Entity;
  4. use App\Domain\Common\Entity\Centre;
  5. use App\Infrastructure\Doctrine\Entity\Traits\AdressableTrait;
  6. use App\Infrastructure\Doctrine\Entity\Traits\IdableTrait;
  7. use App\Infrastructure\Doctrine\Entity\Traits\LibellableTrait;
  8. use App\Infrastructure\Doctrine\Entity\Traits\LocalisableTrait;
  9. use App\Infrastructure\Doctrine\Entity\Traits\SyncableTrait;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. use Gedmo\Mapping\Annotation as Gedmo;
  13. /**
  14.  * @ORM\Entity(repositoryClass="App\Infrastructure\Doctrine\Repository\DoctrineCentreRepository")
  15.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=false)
  16.  */
  17. class DoctrineCentre implements Centre
  18. {
  19.     use IdableTrait;
  20.     use LibellableTrait;
  21.     use AdressableTrait;
  22.     use LocalisableTrait;
  23.     use SyncableTrait;
  24.     /**
  25.      * @ORM\Column(type="string", length=191, nullable=true)
  26.      */
  27.     protected ?string $raisonSociale null;
  28.     /**
  29.      * @ORM\Column(type="string", length=191, nullable=true)
  30.      */
  31.     protected ?string $numero null;
  32.     /**
  33.      * @ORM\Column(type="text", nullable=true)
  34.      */
  35.     protected ?string $header null;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      */
  39.     protected ?string $footer null;
  40.     /**
  41.      * @ORM\Column(type="integer")
  42.      *
  43.      * @Assert\PositiveOrZero()
  44.      */
  45.     protected int $nombrePlacesAssises 0;
  46.     /**
  47.      * @ORM\Column(type="boolean", nullable=true, options={"default": 0})
  48.      */
  49.     private bool $hasV1Database false;
  50.     public function getRaisonSociale(): ?string
  51.     {
  52.         return $this->raisonSociale;
  53.     }
  54.     public function setRaisonSociale(?string $raisonSociale): void
  55.     {
  56.         $this->raisonSociale $raisonSociale;
  57.     }
  58.     public function getNumero(): ?string
  59.     {
  60.         return $this->numero;
  61.     }
  62.     public function setNumero(?string $numero): void
  63.     {
  64.         $this->numero $numero;
  65.     }
  66.     public function getHeader(): ?string
  67.     {
  68.         return $this->header;
  69.     }
  70.     public function setHeader(?string $header): void
  71.     {
  72.         $this->header $header;
  73.     }
  74.     public function getFooter(): ?string
  75.     {
  76.         return $this->footer;
  77.     }
  78.     public function setFooter(?string $footer): void
  79.     {
  80.         $this->footer $footer;
  81.     }
  82.     public function getNombrePlacesAssises(): int
  83.     {
  84.         return $this->nombrePlacesAssises;
  85.     }
  86.     public function setNombrePlacesAssises(int $nombrePlacesAssises): void
  87.     {
  88.         $this->nombrePlacesAssises $nombrePlacesAssises;
  89.     }
  90.     public function getHasV1Database(): bool
  91.     {
  92.         return $this->hasV1Database;
  93.     }
  94.     public function setHasV1Database(bool $hasV1Database): self
  95.     {
  96.         $this->hasV1Database $hasV1Database;
  97.         return $this;
  98.     }
  99. }