| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Organization;
- use ApiPlatform\Core\Annotation\ApiResource;
- use App\Repository\Organization\ParametersRepository;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- #[ApiResource(
- collectionOperations: [],
- itemOperations: ['get']
- )]
- #[ORM\Entity(repositoryClass: ParametersRepository::class)]
- class Parameters
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\Column(type: 'date', nullable: true)]
- private ?\DateTimeInterface $financialDate = null;
- #[ORM\Column(type: 'date', nullable: true)]
- private ?\DateTimeInterface $musicalDate = null;
- #[ORM\Column(type: 'date', nullable: true)]
- private ?\DateTimeInterface $startCourseDate = null;
- #[ORM\Column(type: 'date', nullable: true)]
- private ?\DateTimeInterface $endCourseDate = null;
- #[ORM\Column(options: ['default' => false])]
- private bool $trackingValidation = false;
- #[ORM\Column(options: ['default' => true])]
- private bool $editCriteriaNotationByAdminOnly = true;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $smsSenderName = null;
- #[ORM\Column(options: ['default' => false])]
- private bool $logoDonorsMove = false;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $subDomain = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $website = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $otherWebsite = null;
- #[ORM\Column(options: ['default' => false])]
- private bool $desactivateOpentalentSiteWeb = false;
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\OpcBulletinPeriodEnumaEnum', 'toArray'], message: 'invalid-bulletin-period')]
- private ?string $bulletinPeriod = null;
- #[ORM\Column(options: ['default' => false])]
- private bool $bulletinWithTeacher = false;
- #[ORM\Column(options: ['default' => false])]
- private bool $bulletinPrintAddress = false;
- #[ORM\Column(options: ['default' => true])]
- private bool $bulletinSignatureDirector = true;
- #[ORM\Column(options: ['default' => true])]
- private bool $bulletinDisplayLevelAcquired = true;
- #[ORM\Column(options: ['default' => false])]
- private bool $bulletinShowEducationWithoutEvaluation = false;
- #[ORM\Column(options: ['default' => false])]
- private bool $bulletinViewTestResults = false;
- #[ORM\Column(options: ['default' => false])]
- private bool $bulletinShowAbsences = false;
- #[ORM\Column(options: ['default' => true])]
- private bool $bulletinShowAverages = true;
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\BulletinOutputEnum', 'toArray'], message: 'invalid-bulletin-output')]
- private ?string $bulletinOutput = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $usernameSMS = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $passwordSMS = null;
- #[ORM\Column(options: ['default' => true])]
- private bool $bulletinEditWithoutEvaluation = true;
- #[ORM\Column(length: 255, nullable: true, options: ['default' => 'STUDENTS_AND_THEIR_GUARDIANS'])]
- #[Assert\Choice(callback: ['\App\Enum\Organization\SendToBulletinEnum', 'toArray'], message: 'invalid-send-to-bulletin')]
- private ?string $bulletinReceiver = null;
- #[ORM\Column(options: ['default' => true])]
- private bool $showAdherentList = true;
- #[ORM\Column(options: ['default' => false])]
- private bool $studentsAreAdherents = false;
- #[ORM\Column(length: 255, options: ['default' => 'Europe/Paris'])]
- #[Assert\Choice(callback: ['\App\Enum\Organization\TimeZoneEnum', 'toArray'], message: 'invalid-timezone')]
- private ?string $timezone = "Europe/Paris";
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\PeriodicityEnum', 'toArray'], message: 'invalid-periodicity')]
- private ?string $educationPeriodicity = null;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getFinancialDate(): ?\DateTimeInterface
- {
- return $this->financialDate;
- }
- public function setFinancialDate(?\DateTimeInterface $financialDate): self
- {
- $this->financialDate = $financialDate;
- return $this;
- }
- public function getMusicalDate(): ?\DateTimeInterface
- {
- return $this->musicalDate;
- }
- public function setMusicalDate(?\DateTimeInterface $musicalDate): self
- {
- $this->musicalDate = $musicalDate;
- return $this;
- }
- public function getStartCourseDate(): ?\DateTimeInterface
- {
- return $this->startCourseDate;
- }
- public function setStartCourseDate(?\DateTimeInterface $startCourseDate): self
- {
- $this->startCourseDate = $startCourseDate;
- return $this;
- }
- public function getEndCourseDate(): ?\DateTimeInterface
- {
- return $this->endCourseDate;
- }
- public function setEndCourseDate(?\DateTimeInterface $endCourseDate): self
- {
- $this->endCourseDate = $endCourseDate;
- return $this;
- }
- public function getTrackingValidation(): bool
- {
- return $this->trackingValidation;
- }
- public function setTrackingValidation(bool $trackingValidation): self
- {
- $this->trackingValidation = $trackingValidation;
- return $this;
- }
- public function getEditCriteriaNotationByAdminOnly(): bool
- {
- return $this->editCriteriaNotationByAdminOnly;
- }
- public function setEditCriteriaNotationByAdminOnly(bool $editCriteriaNotationByAdminOnly): self
- {
- $this->editCriteriaNotationByAdminOnly = $editCriteriaNotationByAdminOnly;
- return $this;
- }
- public function getSmsSenderName(): ?string
- {
- return $this->smsSenderName;
- }
- public function setSmsSenderName(?string $smsSenderName): self
- {
- $this->smsSenderName = $smsSenderName;
- return $this;
- }
- public function getLogoDonorsMove(): bool
- {
- return $this->logoDonorsMove;
- }
- public function setLogoDonorsMove(bool $logoDonorsMove): self
- {
- $this->logoDonorsMove = $logoDonorsMove;
- return $this;
- }
- public function getSubDomain(): ?string
- {
- return $this->subDomain;
- }
- public function setSubDomain(?string $subDomain): self
- {
- $this->subDomain = $subDomain;
- return $this;
- }
- public function getWebsite(): ?string
- {
- return $this->website;
- }
- public function setWebsite(?string $website): self
- {
- $this->website = $website;
- return $this;
- }
- public function getOtherWebsite(): ?string
- {
- return $this->otherWebsite;
- }
- public function setOtherWebsite(?string $otherWebsite): self
- {
- $this->otherWebsite = $otherWebsite;
- return $this;
- }
- public function getDesactivateOpentalentSiteWeb(): bool
- {
- return $this->desactivateOpentalentSiteWeb;
- }
- public function setDesactivateOpentalentSiteWeb(bool $desactivateOpentalentSiteWeb): self
- {
- $this->desactivateOpentalentSiteWeb = $desactivateOpentalentSiteWeb;
- return $this;
- }
- public function getBulletinPeriod(): ?string
- {
- return $this->bulletinPeriod;
- }
- public function setBulletinPeriod(?string $bulletinPeriod): self
- {
- $this->bulletinPeriod = $bulletinPeriod;
- return $this;
- }
- public function getBulletinWithTeacher(): bool
- {
- return $this->bulletinWithTeacher;
- }
- public function setBulletinWithTeacher(bool $bulletinWithTeacher): self
- {
- $this->bulletinWithTeacher = $bulletinWithTeacher;
- return $this;
- }
- public function getBulletinPrintAddress(): bool
- {
- return $this->bulletinPrintAddress;
- }
- public function setBulletinPrintAddress(bool $bulletinPrintAddress): self
- {
- $this->bulletinPrintAddress = $bulletinPrintAddress;
- return $this;
- }
- public function getBulletinSignatureDirector(): bool
- {
- return $this->bulletinSignatureDirector;
- }
- public function setBulletinSignatureDirector(bool $bulletinSignatureDirector): self
- {
- $this->bulletinSignatureDirector = $bulletinSignatureDirector;
- return $this;
- }
- public function getBulletinDisplayLevelAcquired(): bool
- {
- return $this->bulletinDisplayLevelAcquired;
- }
- public function setBulletinDisplayLevelAcquired(bool $bulletinDisplayLevelAcquired): self
- {
- $this->bulletinDisplayLevelAcquired = $bulletinDisplayLevelAcquired;
- return $this;
- }
- public function getBulletinShowEducationWithoutEvaluation(): bool
- {
- return $this->bulletinShowEducationWithoutEvaluation;
- }
- public function setBulletinShowEducationWithoutEvaluation(bool $bulletinShowEducationWithoutEvaluation): self
- {
- $this->bulletinShowEducationWithoutEvaluation = $bulletinShowEducationWithoutEvaluation;
- return $this;
- }
- public function getBulletinViewTestResults(): bool
- {
- return $this->bulletinViewTestResults;
- }
- public function setBulletinViewTestResults(bool $bulletinViewTestResults): self
- {
- $this->bulletinViewTestResults = $bulletinViewTestResults;
- return $this;
- }
- public function getBulletinShowAbsences(): bool
- {
- return $this->bulletinShowAbsences;
- }
- public function setBulletinShowAbsences(bool $bulletinShowAbsences): self
- {
- $this->bulletinShowAbsences = $bulletinShowAbsences;
- return $this;
- }
- public function getBulletinShowAverages(): bool
- {
- return $this->bulletinShowAverages;
- }
- public function setBulletinShowAverages(bool $bulletinShowAverages): self
- {
- $this->bulletinShowAverages = $bulletinShowAverages;
- return $this;
- }
- public function getBulletinOutput(): ?string
- {
- return $this->bulletinOutput;
- }
- public function setBulletinOutput(?string $bulletinOutput): self
- {
- $this->bulletinOutput = $bulletinOutput;
- return $this;
- }
- public function getUsernameSMS(): ?string
- {
- return $this->usernameSMS;
- }
- public function setUsernameSMS(?string $usernameSMS): self
- {
- $this->usernameSMS = $usernameSMS;
- return $this;
- }
- public function getPasswordSMS(): ?string
- {
- return $this->passwordSMS;
- }
- public function setPasswordSMS(?string $passwordSMS): self
- {
- $this->passwordSMS = $passwordSMS;
- return $this;
- }
- public function getBulletinEditWithoutEvaluation(): bool
- {
- return $this->bulletinEditWithoutEvaluation;
- }
- public function setBulletinEditWithoutEvaluation(bool $bulletinEditWithoutEvaluation): self
- {
- $this->bulletinEditWithoutEvaluation = $bulletinEditWithoutEvaluation;
- return $this;
- }
- public function getBulletinReceiver(): ?string
- {
- return $this->bulletinReceiver;
- }
- public function setBulletinReceiver(?string $bulletinReceiver): self
- {
- $this->bulletinReceiver = $bulletinReceiver;
- return $this;
- }
- public function getShowAdherentList(): bool
- {
- return $this->showAdherentList;
- }
- public function setShowAdherentList(bool $showAdherentList): self
- {
- $this->showAdherentList = $showAdherentList;
- return $this;
- }
- public function getStudentsAreAdherents(): bool
- {
- return $this->studentsAreAdherents;
- }
- public function setStudentsAreAdherents(bool $studentsAreAdherents): self
- {
- $this->studentsAreAdherents = $studentsAreAdherents;
- return $this;
- }
- public function getTimezone(): string
- {
- return $this->timezone;
- }
- public function setTimezone(string $timezone): self
- {
- $this->timezone = $timezone;
- return $this;
- }
- public function getEducationPeriodicity(): ?string
- {
- return $this->educationPeriodicity;
- }
- public function setEducationPeriodicity(?string $educationPeriodicity): self
- {
- $this->educationPeriodicity = $educationPeriodicity;
- return $this;
- }
- }
|