浏览代码

Merge branch 'feature/V8-5942-rpercuter-les-modifications-depu' into develop

Olivier Massot 1 年之前
父节点
当前提交
d3f290dd13
共有 2 个文件被更改,包括 139 次插入3 次删除
  1. 138 2
      src/Entity/Organization/Parameters.php
  2. 1 1
      src/Service/Mailer/Builder/AbstractBuilder.php

+ 138 - 2
src/Entity/Organization/Parameters.php

@@ -173,12 +173,40 @@ class Parameters
     #[ORM\Column(options: ['default' => true])]
     private bool $consultTeacherListing = true;
 
-    #[ORM\Column(options: ['default' => true])]
-    private bool $periodValidation = true;
+    #[ORM\Column(options: ['default' => false])]
+    private bool $periodValidation = false;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $requiredValidation = false;
 
     #[ORM\Column(type: 'boolean', options: ['default' => false])]
     private bool $notifyAdministrationAbsence = false;
 
+    #[ORM\Column(options: ['default' => 2])]
+    #[Assert\Range(notInRangeMessage: 'between_{{ min }}_and_{{ max }}', min: 2, max: 100)]
+    private int $numberConsecutiveAbsences = 2;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $createCourse = false;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $updateCourse = false;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $deleteCourse = false;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $crudPedagogic = false;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $administrationCc = false;
+
+    #[ORM\Column(options: ['default' => true])]
+    private bool $allowMembersToChangeGivenNameAndName = true;
+
+    #[ORM\Column(options: ['default' => false])]
+    private bool $showEducationIsACollectivePractice = false;
+
     #[Pure]
     public function __construct()
     {
@@ -709,4 +737,112 @@ class Parameters
 
         return $this;
     }
+
+    public function getNumberConsecutiveAbsences(): int
+    {
+        return $this->numberConsecutiveAbsences;
+    }
+
+    public function setNumberConsecutiveAbsences(int $numberConsecutiveAbsences): self
+    {
+        $this->numberConsecutiveAbsences = $numberConsecutiveAbsences;
+
+        return $this;
+    }
+
+    public function isRequiredValidation(): bool
+    {
+        return $this->requiredValidation;
+    }
+
+    public function setRequiredValidation(bool $requiredValidation): self
+    {
+        $this->requiredValidation = $requiredValidation;
+
+        return $this;
+    }
+
+    public function isCreateCourse(): bool
+    {
+        return $this->createCourse;
+    }
+
+    public function setCreateCourse(bool $createCourse): self
+    {
+        $this->createCourse = $createCourse;
+
+        return $this;
+    }
+
+    public function isUpdateCourse(): bool
+    {
+        return $this->updateCourse;
+    }
+
+    public function setUpdateCourse(bool $updateCourse): self
+    {
+        $this->updateCourse = $updateCourse;
+
+        return $this;
+    }
+
+    public function isDeleteCourse(): bool
+    {
+        return $this->deleteCourse;
+    }
+
+    public function setDeleteCourse(bool $deleteCourse): self
+    {
+        $this->deleteCourse = $deleteCourse;
+
+        return $this;
+    }
+
+    public function isCrudPedagogic(): bool
+    {
+        return $this->crudPedagogic;
+    }
+
+    public function setCrudPedagogic(bool $crudPedagogic): self
+    {
+        $this->crudPedagogic = $crudPedagogic;
+
+        return $this;
+    }
+
+    public function isAdministrationCc(): bool
+    {
+        return $this->administrationCc;
+    }
+
+    public function setAdministrationCc(bool $administrationCc): self
+    {
+        $this->administrationCc = $administrationCc;
+
+        return $this;
+    }
+
+    public function isAllowMembersToChangeGivenNameAndName(): bool
+    {
+        return $this->allowMembersToChangeGivenNameAndName;
+    }
+
+    public function setAllowMembersToChangeGivenNameAndName(bool $allowMembersToChangeGivenNameAndName): self
+    {
+        $this->allowMembersToChangeGivenNameAndName = $allowMembersToChangeGivenNameAndName;
+
+        return $this;
+    }
+
+    public function isShowEducationIsACollectivePractice(): bool
+    {
+        return $this->showEducationIsACollectivePractice;
+    }
+
+    public function setShowEducationIsACollectivePractice(bool $showEducationIsACollectivePractice): self
+    {
+        $this->showEducationIsACollectivePractice = $showEducationIsACollectivePractice;
+
+        return $this;
+    }
 }

+ 1 - 1
src/Service/Mailer/Builder/AbstractBuilder.php

@@ -14,7 +14,7 @@ use App\Enum\Message\ReportMessageStatusEnum;
 use App\Repository\Core\ContactPointRepository;
 use App\Service\Mailer\Email;
 use App\Service\Mailer\EmailRecipient;
-use App\Tests\Service\Mailer\Builder\AbstractBuilderTest;
+use App\Tests\Unit\Service\Mailer\Builder\AbstractBuilderTest;
 use Symfony\Contracts\Service\Attribute\Required;
 use Twig\Environment;