Parameters.php 23 KB

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