src/Entity/School.php line 12

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\SchoolRepository;
  5. use App\Utils\Traits\EntityId_TimestampTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassSchoolRepository::class)]
  8. class School
  9. {
  10.     use EntityId_TimestampTrait;
  11.     #[ORM\Column(length255uniquetrue)]
  12.     private ?string $name null;
  13.     #[ORM\Column(length20)]
  14.     private ?string $fileCode null;
  15.     #[ORM\Column(length10nullabletrueuniquetrue)]
  16.     private ?string $acronyme null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $email null;
  19.     #[ORM\Column(length100)]
  20.     private ?string $telephone null;
  21.     #[ORM\Column(length100nullabletrue)]
  22.     private ?string $telephone2 null;
  23.     #[ORM\Column(length100nullabletrue)]
  24.     private ?string $telephone3 null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $address null;
  27.     #[ORM\ManyToOne]
  28.     #[ORM\JoinColumn(nullabletrue)]
  29.     private ?Countries $currency null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $website null;
  32.     #[ORM\ManyToOne]
  33.     #[ORM\JoinColumn(nullablefalse)]
  34.     private ?Countries $location null;
  35.     #[ORM\ManyToOne]
  36.     #[ORM\JoinColumn(nullabletrue)]
  37.     private ?TypeOfTypes $instituteType null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $accreditationInfo null;
  40.     #[ORM\Column(length255)]
  41.     private ?string $repName null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $repTelphone null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $repEmail null;
  46.     #[ORM\Column(length255)]
  47.     private ?string $repFrName null;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $repFrTelphone null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $repFrEmail null;
  52.     public function __toString()
  53.     {
  54.         return $this->acronyme;
  55.     }
  56.     public function getName(): ?string
  57.     {
  58.         return $this->name;
  59.     }
  60.     public function setName(string $name): self
  61.     {
  62.         $this->name $name;
  63.         return $this;
  64.     }
  65.     public function getFileCode(): ?string
  66.     {
  67.         return $this->fileCode;
  68.     }
  69.     public function setFileCode(string $fileCode): self
  70.     {
  71.         $this->fileCode $fileCode;
  72.         return $this;
  73.     }
  74.     public function getAcronyme(): ?string
  75.     {
  76.         return $this->acronyme;
  77.     }
  78.     public function setAcronyme(?string $acronyme): self
  79.     {
  80.         $this->acronyme $acronyme;
  81.         return $this;
  82.     }
  83.     public function getEmail(): ?string
  84.     {
  85.         return $this->email;
  86.     }
  87.     public function setEmail(string $email): self
  88.     {
  89.         $this->email $email;
  90.         return $this;
  91.     }
  92.     public function getTelephone(): ?string
  93.     {
  94.         return $this->telephone;
  95.     }
  96.     public function setTelephone(string $telephone): self
  97.     {
  98.         $this->telephone $telephone;
  99.         return $this;
  100.     }
  101.     public function getTelephone2(): ?string
  102.     {
  103.         return $this->telephone2;
  104.     }
  105.     public function setTelephone2(?string $telephone2): self
  106.     {
  107.         $this->telephone2 $telephone2;
  108.         return $this;
  109.     }
  110.     public function getTelephone3(): ?string
  111.     {
  112.         return $this->telephone3;
  113.     }
  114.     public function setTelephone3(?string $telephone3): self
  115.     {
  116.         $this->telephone3 $telephone3;
  117.         return $this;
  118.     }
  119.     public function getAddress(): ?string
  120.     {
  121.         return $this->address;
  122.     }
  123.     public function setAddress(?string $address): self
  124.     {
  125.         $this->address $address;
  126.         return $this;
  127.     }
  128.     public function getWebsite(): ?string
  129.     {
  130.         return $this->website;
  131.     }
  132.     public function setWebsite(?string $website): self
  133.     {
  134.         $this->website $website;
  135.         return $this;
  136.     }
  137.     public function getAccreditationInfo(): ?string
  138.     {
  139.         return $this->accreditationInfo;
  140.     }
  141.     public function setAccreditationInfo(?string $accreditationInfo): self
  142.     {
  143.         $this->accreditationInfo $accreditationInfo;
  144.         return $this;
  145.     }
  146.     public function getCurrency(): ?Countries
  147.     {
  148.         return $this->currency;
  149.     }
  150.     public function setCurrency(?Countries $currency): self
  151.     {
  152.         $this->currency $currency;
  153.         return $this;
  154.     }
  155.     public function getLocation(): ?Countries
  156.     {
  157.         return $this->location;
  158.     }
  159.     public function setLocation(?Countries $location): self
  160.     {
  161.         $this->location $location;
  162.         return $this;
  163.     }
  164.     public function getInstituteType(): ?TypeOfTypes
  165.     {
  166.         return $this->instituteType;
  167.     }
  168.     public function setInstituteType(?TypeOfTypes $instituteType): self
  169.     {
  170.         $this->instituteType $instituteType;
  171.         return $this;
  172.     }
  173.     public function getRepName(): ?string
  174.     {
  175.         return $this->repName;
  176.     }
  177.     public function setRepName(string $repName): self
  178.     {
  179.         $this->repName $repName;
  180.         return $this;
  181.     }
  182.     public function getRepTelphone(): ?string
  183.     {
  184.         return $this->repTelphone;
  185.     }
  186.     public function setRepTelphone(?string $repTelphone): self
  187.     {
  188.         $this->repTelphone $repTelphone;
  189.         return $this;
  190.     }
  191.     public function getRepEmail(): ?string
  192.     {
  193.         return $this->repEmail;
  194.     }
  195.     public function setRepEmail(?string $repEmail): self
  196.     {
  197.         $this->repEmail $repEmail;
  198.         return $this;
  199.     }
  200.     public function getRepFrName(): ?string
  201.     {
  202.         return $this->repFrName;
  203.     }
  204.     public function setRepFrName(string $repFrName): static
  205.     {
  206.         $this->repFrName $repFrName;
  207.         return $this;
  208.     }
  209.     public function getRepFrTelphone(): ?string
  210.     {
  211.         return $this->repFrTelphone;
  212.     }
  213.     public function setRepFrTelphone(?string $repFrTelphone): static
  214.     {
  215.         $this->repFrTelphone $repFrTelphone;
  216.         return $this;
  217.     }
  218.     public function getRepFrEmail(): ?string
  219.     {
  220.         return $this->repFrEmail;
  221.     }
  222.     public function setRepFrEmail(?string $repFrEmail): static
  223.     {
  224.         $this->repFrEmail $repFrEmail;
  225.         return $this;
  226.     }
  227. }