Parameters.php 22 KB

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