Parameters.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Organization;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use ApiPlatform\Metadata\Get;
  6. use ApiPlatform\Metadata\Patch;
  7. use App\Entity\Access\Access;
  8. use App\Entity\Core\File;
  9. use App\Enum\Core\TimeZoneEnum;
  10. use App\Enum\Education\AdvancedEducationNotationTypeEnum;
  11. use App\Enum\Education\PeriodicityEnum;
  12. use App\Enum\Organization\BulletinCriteriaSortEnum;
  13. use App\Enum\Organization\BulletinOutputEnum;
  14. use App\Enum\Organization\BulletinPeriodEnum;
  15. use App\Enum\Organization\SendToBulletinEnum;
  16. use App\Repository\Organization\ParametersRepository;
  17. use App\State\Processor\Organization\ParametersProcessor;
  18. use App\Validator\Organization\Parameters as OpentalentAssert;
  19. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  20. use Doctrine\Common\Collections\ArrayCollection;
  21. use Doctrine\Common\Collections\Collection;
  22. use Doctrine\ORM\Mapping as ORM;
  23. use JetBrains\PhpStorm\Pure;
  24. use Symfony\Component\Validator\Constraints as Assert;
  25. /**
  26. * Paramètres généraux d'une organisation.
  27. */
  28. #[ApiResource(
  29. operations: [
  30. new Get(
  31. security: 'is_granted("ROLE_ORGANIZATION_VIEW") and object.getOrganization().getId() == user.getOrganization().getId()'
  32. ),
  33. new Patch(
  34. security: 'is_granted("ROLE_ORGANIZATION") and object.getOrganization().getId() == user.getOrganization().getId()'
  35. ),
  36. ],
  37. processor: ParametersProcessor::class
  38. )]
  39. #[Auditable]
  40. #[ORM\Entity(repositoryClass: ParametersRepository::class)]
  41. #[OpentalentAssert\MobytCredentials]
  42. class Parameters
  43. {
  44. #[ORM\Id]
  45. #[ORM\Column]
  46. #[ORM\GeneratedValue]
  47. private ?int $id = null;
  48. #[ORM\OneToOne(targetEntity: Organization::class, mappedBy: 'parameters', cascade: ['persist', 'remove'])]
  49. private ?Organization $organization = null;
  50. #[ORM\Column(type: 'date', nullable: true)]
  51. private ?\DateTimeInterface $financialDate = null;
  52. #[ORM\Column(type: 'date', nullable: true)]
  53. private ?\DateTimeInterface $musicalDate = null;
  54. #[ORM\Column(type: 'date', nullable: true)]
  55. private ?\DateTimeInterface $startCourseDate = null;
  56. #[ORM\Column(type: 'date', nullable: true)]
  57. private ?\DateTimeInterface $endCourseDate = null;
  58. #[ORM\Column(columnDefinition: 'TINYINT DEFAULT 20 NOT NULL')]
  59. #[Assert\Range(notInRangeMessage: 'between_{{ min }}_and_{{ max }}', min: 0, max: 100)]
  60. private int $average = 20;
  61. #[ORM\Column(options: ['default' => true])]
  62. private bool $editCriteriaNotationByAdminOnly = true;
  63. #[ORM\Column(length: 11, nullable: true)]
  64. #[Assert\Regex('/^[a-zA-Z0-9_ .]{3,11}$/i', message: 'smsSenderName_error')]
  65. private ?string $smsSenderName = null;
  66. #[ORM\Column(options: ['default' => false])]
  67. private bool $logoDonorsMove = false;
  68. #[ORM\Column(length: 60, nullable: true)]
  69. private ?string $subDomain = null;
  70. #[ORM\Column(length: 100, nullable: true)]
  71. private ?string $website = null;
  72. #[ORM\Column(length: 150, nullable: true)]
  73. private ?string $otherWebsite = null;
  74. #[ORM\Column(length: 150, nullable: true)]
  75. private ?string $customDomain = null;
  76. #[ORM\Column(options: ['default' => false])]
  77. private bool $desactivateOpentalentSiteWeb = false;
  78. /** @var Collection<int, Access> */
  79. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'publicationDirector')]
  80. private Collection $publicationDirectors;
  81. #[ORM\Column(length: 255, nullable: true, enumType: BulletinOutputEnum::class)]
  82. private ?BulletinPeriodEnum $bulletinPeriod = null;
  83. #[ORM\Column(options: ['default' => false])]
  84. private bool $bulletinWithTeacher = false;
  85. #[ORM\Column(options: ['default' => false])]
  86. private bool $bulletinPrintAddress = false;
  87. #[ORM\Column(options: ['default' => true])]
  88. private bool $bulletinSignatureDirector = true;
  89. #[ORM\Column(options: ['default' => true])]
  90. private bool $bulletinDisplayLevelAcquired = true;
  91. #[ORM\Column(options: ['default' => false])]
  92. private bool $bulletinShowEducationWithoutEvaluation = false;
  93. #[ORM\Column(options: ['default' => false])]
  94. private bool $bulletinViewTestResults = false;
  95. #[ORM\Column(options: ['default' => false])]
  96. private bool $bulletinShowAbsences = false;
  97. #[ORM\Column(options: ['default' => true])]
  98. private bool $bulletinShowAverages = true;
  99. #[ORM\Column(length: 255, nullable: true, enumType: BulletinOutputEnum::class)]
  100. private ?BulletinOutputEnum $bulletinOutput = null;
  101. #[ORM\Column(options: ['default' => true])]
  102. private bool $bulletinEditWithoutEvaluation = true;
  103. #[ORM\Column(length: 255, nullable: true, enumType: SendToBulletinEnum::class, options: ['default' => SendToBulletinEnum::STUDENTS_AND_THEIR_GUARDIANS])]
  104. private ?SendToBulletinEnum $bulletinReceiver = SendToBulletinEnum::STUDENTS_AND_THEIR_GUARDIANS;
  105. #[ORM\Column(length: 255, nullable: false, enumType: BulletinCriteriaSortEnum::class, options: ['default' => BulletinCriteriaSortEnum::BY_CRITERIA_INSERT])]
  106. private BulletinCriteriaSortEnum $bulletinCriteriaSort;
  107. #[ORM\Column(length: 100, nullable: true)]
  108. private ?string $usernameSMS = null;
  109. #[ORM\Column(length: 255, nullable: true)]
  110. private ?string $passwordSMS = null;
  111. #[ORM\Column(options: ['default' => true])]
  112. private bool $showAdherentList = true;
  113. #[ORM\Column(options: ['default' => false])]
  114. private bool $studentsAreAdherents = false;
  115. #[ORM\OneToOne(inversedBy: 'qrCode', targetEntity: File::class, cascade: ['persist'], fetch: 'EAGER')]
  116. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  117. private ?File $qrCode = null;
  118. #[ORM\Column(length: 255, enumType: TimeZoneEnum::class, options: ['default' => TimeZoneEnum::EUROPE_PARIS])]
  119. private TimeZoneEnum $timezone = TimeZoneEnum::EUROPE_PARIS;
  120. #[ORM\Column(length: 255, nullable: false, enumType: PeriodicityEnum::class, options: ['default' => PeriodicityEnum::ANNUAL])]
  121. private PeriodicityEnum $educationPeriodicity = PeriodicityEnum::ANNUAL;
  122. #[ORM\Column(length: 255, nullable: true, enumType: AdvancedEducationNotationTypeEnum::class, options: ['default' => AdvancedEducationNotationTypeEnum::BY_EDUCATION])]
  123. private ?AdvancedEducationNotationTypeEnum $advancedEducationNotationType = AdvancedEducationNotationTypeEnum::BY_EDUCATION;
  124. #[ORM\Column(options: ['default' => false])]
  125. private bool $sendAttendanceEmail = false;
  126. #[ORM\Column(options: ['default' => false])]
  127. private bool $sendAttendanceSms = false;
  128. #[ORM\Column(options: ['default' => true])]
  129. private bool $generateAttendanceReport = true;
  130. #[ORM\Column(options: ['default' => true])]
  131. private bool $consultPedagogicResult = true;
  132. #[ORM\Column(options: ['default' => true])]
  133. private bool $consultTeacherListing = true;
  134. #[ORM\Column(options: ['default' => false])]
  135. private bool $periodValidation = false;
  136. #[ORM\Column(options: ['default' => false])]
  137. private bool $requiredValidation = false;
  138. #[ORM\Column(type: 'boolean', options: ['default' => false])]
  139. private bool $notifyAdministrationAbsence = false;
  140. #[ORM\Column(columnDefinition: 'TINYINT DEFAULT 2 NOT NULL')]
  141. #[Assert\Range(notInRangeMessage: 'between_{{ min }}_and_{{ max }}', min: 2, max: 100)]
  142. private int $numberConsecutiveAbsences = 2;
  143. #[ORM\Column(options: ['default' => false])]
  144. private bool $createCourse = false;
  145. #[ORM\Column(options: ['default' => false])]
  146. private bool $updateCourse = false;
  147. #[ORM\Column(options: ['default' => false])]
  148. private bool $deleteCourse = false;
  149. #[ORM\Column(options: ['default' => false])]
  150. private bool $crudPedagogic = false;
  151. #[ORM\Column(options: ['default' => false])]
  152. private bool $administrationCc = false;
  153. #[ORM\Column(options: ['default' => true])]
  154. private bool $allowMembersToChangeGivenNameAndName = true;
  155. #[ORM\Column(options: ['default' => false])]
  156. private bool $showEducationIsACollectivePractice = false;
  157. #[Pure]
  158. public function __construct()
  159. {
  160. $this->publicationDirectors = new ArrayCollection();
  161. }
  162. public function getId(): ?int
  163. {
  164. return $this->id;
  165. }
  166. public function getOrganization(): Organization
  167. {
  168. return $this->organization;
  169. }
  170. public function setOrganization(Organization $organization): self
  171. {
  172. // set the owning side of the relation if necessary
  173. if ($organization->getParameters() !== $this) {
  174. $organization->setParameters($this);
  175. }
  176. $this->organization = $organization;
  177. return $this;
  178. }
  179. public function getFinancialDate(): ?\DateTimeInterface
  180. {
  181. return $this->financialDate;
  182. }
  183. public function setFinancialDate(?\DateTimeInterface $financialDate): self
  184. {
  185. $this->financialDate = $financialDate;
  186. return $this;
  187. }
  188. public function getMusicalDate(): ?\DateTimeInterface
  189. {
  190. return $this->musicalDate;
  191. }
  192. public function setMusicalDate(?\DateTimeInterface $musicalDate): self
  193. {
  194. $this->musicalDate = $musicalDate;
  195. return $this;
  196. }
  197. public function getStartCourseDate(): ?\DateTimeInterface
  198. {
  199. return $this->startCourseDate;
  200. }
  201. public function setStartCourseDate(?\DateTimeInterface $startCourseDate): self
  202. {
  203. $this->startCourseDate = $startCourseDate;
  204. return $this;
  205. }
  206. public function getEndCourseDate(): ?\DateTimeInterface
  207. {
  208. return $this->endCourseDate;
  209. }
  210. public function setEndCourseDate(?\DateTimeInterface $endCourseDate): self
  211. {
  212. $this->endCourseDate = $endCourseDate;
  213. return $this;
  214. }
  215. public function getAverage(): int
  216. {
  217. return $this->average;
  218. }
  219. public function setAverage(int $average): self
  220. {
  221. $this->average = $average;
  222. return $this;
  223. }
  224. public function getEditCriteriaNotationByAdminOnly(): bool
  225. {
  226. return $this->editCriteriaNotationByAdminOnly;
  227. }
  228. public function setEditCriteriaNotationByAdminOnly(bool $editCriteriaNotationByAdminOnly): self
  229. {
  230. $this->editCriteriaNotationByAdminOnly = $editCriteriaNotationByAdminOnly;
  231. return $this;
  232. }
  233. public function getSmsSenderName(): ?string
  234. {
  235. return $this->smsSenderName;
  236. }
  237. public function setSmsSenderName(?string $smsSenderName): self
  238. {
  239. $this->smsSenderName = $smsSenderName;
  240. return $this;
  241. }
  242. public function getLogoDonorsMove(): bool
  243. {
  244. return $this->logoDonorsMove;
  245. }
  246. public function setLogoDonorsMove(bool $logoDonorsMove): self
  247. {
  248. $this->logoDonorsMove = $logoDonorsMove;
  249. return $this;
  250. }
  251. public function getOtherWebsite(): ?string
  252. {
  253. return $this->otherWebsite;
  254. }
  255. public function setOtherWebsite(?string $otherWebsite): self
  256. {
  257. $this->otherWebsite = $otherWebsite;
  258. return $this;
  259. }
  260. public function getCustomDomain(): ?string
  261. {
  262. return $this->customDomain;
  263. }
  264. public function setCustomDomain(?string $customDomain): void
  265. {
  266. $this->customDomain = $customDomain;
  267. }
  268. public function getDesactivateOpentalentSiteWeb(): bool
  269. {
  270. return $this->desactivateOpentalentSiteWeb;
  271. }
  272. public function setDesactivateOpentalentSiteWeb(bool $desactivateOpentalentSiteWeb): self
  273. {
  274. $this->desactivateOpentalentSiteWeb = $desactivateOpentalentSiteWeb;
  275. return $this;
  276. }
  277. public function getBulletinPeriod(): ?BulletinPeriodEnum
  278. {
  279. return $this->bulletinPeriod;
  280. }
  281. public function setBulletinPeriod(?BulletinPeriodEnum $bulletinPeriod): self
  282. {
  283. $this->bulletinPeriod = $bulletinPeriod;
  284. return $this;
  285. }
  286. public function getPublicationDirectors(): Collection
  287. {
  288. return $this->publicationDirectors;
  289. }
  290. public function addPublicationDirector(Access $access): self
  291. {
  292. if (!$this->publicationDirectors->contains($access)) {
  293. $this->publicationDirectors[] = $access;
  294. $access->setPublicationDirector($this);
  295. }
  296. return $this;
  297. }
  298. public function removePublicationDirector(Access $access): self
  299. {
  300. if ($this->publicationDirectors->removeElement($access)) {
  301. // set the owning side to null (unless already changed)
  302. if ($access->getPublicationDirector() === $this) {
  303. $access->setPublicationDirector(null);
  304. }
  305. }
  306. return $this;
  307. }
  308. public function getBulletinWithTeacher(): bool
  309. {
  310. return $this->bulletinWithTeacher;
  311. }
  312. public function setBulletinWithTeacher(bool $bulletinWithTeacher): self
  313. {
  314. $this->bulletinWithTeacher = $bulletinWithTeacher;
  315. return $this;
  316. }
  317. public function getBulletinPrintAddress(): bool
  318. {
  319. return $this->bulletinPrintAddress;
  320. }
  321. public function setBulletinPrintAddress(bool $bulletinPrintAddress): self
  322. {
  323. $this->bulletinPrintAddress = $bulletinPrintAddress;
  324. return $this;
  325. }
  326. public function getBulletinSignatureDirector(): bool
  327. {
  328. return $this->bulletinSignatureDirector;
  329. }
  330. public function setBulletinSignatureDirector(bool $bulletinSignatureDirector): self
  331. {
  332. $this->bulletinSignatureDirector = $bulletinSignatureDirector;
  333. return $this;
  334. }
  335. public function getBulletinDisplayLevelAcquired(): bool
  336. {
  337. return $this->bulletinDisplayLevelAcquired;
  338. }
  339. public function setBulletinDisplayLevelAcquired(bool $bulletinDisplayLevelAcquired): self
  340. {
  341. $this->bulletinDisplayLevelAcquired = $bulletinDisplayLevelAcquired;
  342. return $this;
  343. }
  344. public function getBulletinShowEducationWithoutEvaluation(): bool
  345. {
  346. return $this->bulletinShowEducationWithoutEvaluation;
  347. }
  348. public function setBulletinShowEducationWithoutEvaluation(bool $bulletinShowEducationWithoutEvaluation): self
  349. {
  350. $this->bulletinShowEducationWithoutEvaluation = $bulletinShowEducationWithoutEvaluation;
  351. return $this;
  352. }
  353. public function getBulletinViewTestResults(): bool
  354. {
  355. return $this->bulletinViewTestResults;
  356. }
  357. public function setBulletinViewTestResults(bool $bulletinViewTestResults): self
  358. {
  359. $this->bulletinViewTestResults = $bulletinViewTestResults;
  360. return $this;
  361. }
  362. public function getBulletinShowAbsences(): bool
  363. {
  364. return $this->bulletinShowAbsences;
  365. }
  366. public function setBulletinShowAbsences(bool $bulletinShowAbsences): self
  367. {
  368. $this->bulletinShowAbsences = $bulletinShowAbsences;
  369. return $this;
  370. }
  371. public function getBulletinShowAverages(): bool
  372. {
  373. return $this->bulletinShowAverages;
  374. }
  375. public function setBulletinShowAverages(bool $bulletinShowAverages): self
  376. {
  377. $this->bulletinShowAverages = $bulletinShowAverages;
  378. return $this;
  379. }
  380. public function getBulletinOutput(): ?BulletinOutputEnum
  381. {
  382. return $this->bulletinOutput;
  383. }
  384. public function setBulletinOutput(?BulletinOutputEnum $bulletinOutput): self
  385. {
  386. $this->bulletinOutput = $bulletinOutput;
  387. return $this;
  388. }
  389. public function getBulletinCriteriaSort(): ?BulletinCriteriaSortEnum
  390. {
  391. return $this->bulletinCriteriaSort;
  392. }
  393. public function setBulletinCriteriaSort(?BulletinCriteriaSortEnum $bulletinCriteriaSort): self
  394. {
  395. $this->bulletinCriteriaSort = $bulletinCriteriaSort;
  396. return $this;
  397. }
  398. public function getUsernameSMS(): ?string
  399. {
  400. return $this->usernameSMS;
  401. }
  402. public function setUsernameSMS(?string $usernameSMS): self
  403. {
  404. $this->usernameSMS = $usernameSMS;
  405. return $this;
  406. }
  407. public function getPasswordSMS(): ?string
  408. {
  409. return $this->passwordSMS;
  410. }
  411. public function setPasswordSMS(?string $passwordSMS): self
  412. {
  413. $this->passwordSMS = $passwordSMS;
  414. return $this;
  415. }
  416. public function getBulletinEditWithoutEvaluation(): bool
  417. {
  418. return $this->bulletinEditWithoutEvaluation;
  419. }
  420. public function setBulletinEditWithoutEvaluation(bool $bulletinEditWithoutEvaluation): self
  421. {
  422. $this->bulletinEditWithoutEvaluation = $bulletinEditWithoutEvaluation;
  423. return $this;
  424. }
  425. public function getBulletinReceiver(): ?SendToBulletinEnum
  426. {
  427. return $this->bulletinReceiver;
  428. }
  429. public function setBulletinReceiver(?SendToBulletinEnum $bulletinReceiver): self
  430. {
  431. $this->bulletinReceiver = $bulletinReceiver;
  432. return $this;
  433. }
  434. public function getShowAdherentList(): bool
  435. {
  436. return $this->showAdherentList;
  437. }
  438. public function setShowAdherentList(bool $showAdherentList): self
  439. {
  440. $this->showAdherentList = $showAdherentList;
  441. return $this;
  442. }
  443. public function getStudentsAreAdherents(): bool
  444. {
  445. return $this->studentsAreAdherents;
  446. }
  447. public function setStudentsAreAdherents(bool $studentsAreAdherents): self
  448. {
  449. $this->studentsAreAdherents = $studentsAreAdherents;
  450. return $this;
  451. }
  452. public function getTimezone(): TimeZoneEnum
  453. {
  454. return $this->timezone;
  455. }
  456. public function setTimezone(TimeZoneEnum $timezone): self
  457. {
  458. $this->timezone = $timezone;
  459. return $this;
  460. }
  461. public function getEducationPeriodicity(): ?PeriodicityEnum
  462. {
  463. return $this->educationPeriodicity;
  464. }
  465. public function setEducationPeriodicity(?PeriodicityEnum $educationPeriodicity): self
  466. {
  467. $this->educationPeriodicity = $educationPeriodicity;
  468. return $this;
  469. }
  470. public function getAdvancedEducationNotationType(): ?AdvancedEducationNotationTypeEnum
  471. {
  472. return $this->advancedEducationNotationType;
  473. }
  474. public function setAdvancedEducationNotationType(?AdvancedEducationNotationTypeEnum $advancedEducationNotationType): self
  475. {
  476. $this->advancedEducationNotationType = $advancedEducationNotationType;
  477. return $this;
  478. }
  479. public function getQrCode(): ?File
  480. {
  481. return $this->qrCode;
  482. }
  483. public function setQrCode(?File $qrCode): self
  484. {
  485. $this->qrCode = $qrCode;
  486. return $this;
  487. }
  488. public function getSendAttendanceSms(): bool
  489. {
  490. return $this->sendAttendanceSms;
  491. }
  492. public function setSendAttendanceSms(bool $sendAttendanceSms): self
  493. {
  494. $this->sendAttendanceSms = $sendAttendanceSms;
  495. return $this;
  496. }
  497. public function getSendAttendanceEmail(): bool
  498. {
  499. return $this->sendAttendanceEmail;
  500. }
  501. public function setSendAttendanceEmail(bool $sendAttendanceEmail): self
  502. {
  503. $this->sendAttendanceEmail = $sendAttendanceEmail;
  504. return $this;
  505. }
  506. public function getSubDomain(): ?string
  507. {
  508. return $this->subDomain;
  509. }
  510. public function setSubDomain(?string $subDomain): void
  511. {
  512. $this->subDomain = $subDomain;
  513. }
  514. public function getWebsite(): ?string
  515. {
  516. return $this->website;
  517. }
  518. public function setWebsite(?string $website): void
  519. {
  520. $this->website = $website;
  521. }
  522. public function isGenerateAttendanceReport(): bool
  523. {
  524. return $this->generateAttendanceReport;
  525. }
  526. public function setGenerateAttendanceReport(bool $generateAttendanceReport): void
  527. {
  528. $this->generateAttendanceReport = $generateAttendanceReport;
  529. }
  530. public function isConsultPedagogicResult(): bool
  531. {
  532. return $this->consultPedagogicResult;
  533. }
  534. public function setConsultPedagogicResult(bool $consultPedagogicResult): void
  535. {
  536. $this->consultPedagogicResult = $consultPedagogicResult;
  537. }
  538. public function isConsultTeacherListing(): bool
  539. {
  540. return $this->consultTeacherListing;
  541. }
  542. public function setConsultTeacherListing(bool $consultTeacherListing): void
  543. {
  544. $this->consultTeacherListing = $consultTeacherListing;
  545. }
  546. /**
  547. * Period validation is enabled.
  548. */
  549. public function isPeriodValidation(): bool
  550. {
  551. return $this->periodValidation;
  552. }
  553. public function setPeriodValidation(bool $periodValidation): void
  554. {
  555. $this->periodValidation = $periodValidation;
  556. }
  557. public function getNotifyAdministrationAbsence(): bool
  558. {
  559. return $this->notifyAdministrationAbsence;
  560. }
  561. public function setNotifyAdministrationAbsence(bool $notifyAdministrationAbsence): self
  562. {
  563. $this->notifyAdministrationAbsence = $notifyAdministrationAbsence;
  564. return $this;
  565. }
  566. public function getNumberConsecutiveAbsences(): int
  567. {
  568. return $this->numberConsecutiveAbsences;
  569. }
  570. public function setNumberConsecutiveAbsences(int $numberConsecutiveAbsences): self
  571. {
  572. $this->numberConsecutiveAbsences = $numberConsecutiveAbsences;
  573. return $this;
  574. }
  575. public function isRequiredValidation(): bool
  576. {
  577. return $this->requiredValidation;
  578. }
  579. public function setRequiredValidation(bool $requiredValidation): self
  580. {
  581. $this->requiredValidation = $requiredValidation;
  582. return $this;
  583. }
  584. public function isCreateCourse(): bool
  585. {
  586. return $this->createCourse;
  587. }
  588. public function setCreateCourse(bool $createCourse): self
  589. {
  590. $this->createCourse = $createCourse;
  591. return $this;
  592. }
  593. public function isUpdateCourse(): bool
  594. {
  595. return $this->updateCourse;
  596. }
  597. public function setUpdateCourse(bool $updateCourse): self
  598. {
  599. $this->updateCourse = $updateCourse;
  600. return $this;
  601. }
  602. public function isDeleteCourse(): bool
  603. {
  604. return $this->deleteCourse;
  605. }
  606. public function setDeleteCourse(bool $deleteCourse): self
  607. {
  608. $this->deleteCourse = $deleteCourse;
  609. return $this;
  610. }
  611. public function isCrudPedagogic(): bool
  612. {
  613. return $this->crudPedagogic;
  614. }
  615. public function setCrudPedagogic(bool $crudPedagogic): self
  616. {
  617. $this->crudPedagogic = $crudPedagogic;
  618. return $this;
  619. }
  620. public function isAdministrationCc(): bool
  621. {
  622. return $this->administrationCc;
  623. }
  624. public function setAdministrationCc(bool $administrationCc): self
  625. {
  626. $this->administrationCc = $administrationCc;
  627. return $this;
  628. }
  629. public function isAllowMembersToChangeGivenNameAndName(): bool
  630. {
  631. return $this->allowMembersToChangeGivenNameAndName;
  632. }
  633. public function setAllowMembersToChangeGivenNameAndName(bool $allowMembersToChangeGivenNameAndName): self
  634. {
  635. $this->allowMembersToChangeGivenNameAndName = $allowMembersToChangeGivenNameAndName;
  636. return $this;
  637. }
  638. public function isShowEducationIsACollectivePractice(): bool
  639. {
  640. return $this->showEducationIsACollectivePractice;
  641. }
  642. public function setShowEducationIsACollectivePractice(bool $showEducationIsACollectivePractice): self
  643. {
  644. $this->showEducationIsACollectivePractice = $showEducationIsACollectivePractice;
  645. return $this;
  646. }
  647. }