Loading module/Application/src/Entity/Db/Intervenant.php +5 −3 Changes for module/Application/src/Entity/Db/Intervenant.php: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ use Contrat\Entity\Db\TypeContrat; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Dossier\Entity\Db\Traits\EmployeurAwareTrait; use Enseignement\Entity\Db\Service; use Indicateur\Entity\Db\IndicModifDossier; use Intervenant\Entity\Db\Statut; use Laminas\Hydrator\ClassMethodsHydrator; Loading @@ -23,6 +24,7 @@ use Mission\Entity\Db\Mission; use OffreFormation\Entity\Db\Traits\DisciplineAwareTrait; use Paiement\Entity\Db\MiseEnPaiementIntervenantStructure; use Plafond\Interfaces\PlafondDataInterface; use Referentiel\Entity\Db\ServiceReferentiel; use Service\Entity\Db\EtatVolumeHoraire; use Service\Entity\Db\HistoIntervenantService; use Service\Entity\Db\ModificationServiceDu; Loading Loading @@ -1560,7 +1562,7 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import /** * Get service * * @return Collection * @return Collection|Service[] */ public function getService() { Loading @@ -1572,7 +1574,7 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import /** * Get service référentiel * * @return Collection * @return Collection|ServiceReferentiel[] */ public function getServiceReferentiel() { Loading Loading @@ -1606,7 +1608,7 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import /** * Get missions * * @return Collection|null * @return Collection|null|Mission[] */ public function getMissions(): ?Collection { Loading module/Mission/src/Entity/Db/Mission.php −2 Changes for module/Mission/src/Entity/Db/Mission.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ namespace Mission\Entity\Db; use Application\Constants; use Application\Entity\Db\DomaineFonctionnel; use Application\Entity\Db\Intervenant; use Application\Entity\Db\Periode; use Application\Entity\Db\Traits\IntervenantAwareTrait; use Application\Entity\Db\Traits\StructureAwareTrait; use Application\Entity\Db\Validation; Loading @@ -14,7 +13,6 @@ use Doctrine\Common\Collections\Collection; use Laminas\Permissions\Acl\Resource\ResourceInterface; use OffreFormation\Entity\Db\TypeHeures; use Paiement\Entity\Db\CentreCout; use Paiement\Entity\Db\MiseEnPaiement; use Paiement\Entity\Db\MiseEnPaiementListe; use Paiement\Entity\Db\ServiceAPayerInterface; use Paiement\Entity\Db\ServiceAPayerTrait; Loading module/OffreFormation/src/Entity/Db/ElementPedagogique.php +1 −1 Changes for module/OffreFormation/src/Entity/Db/ElementPedagogique.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -525,7 +525,7 @@ class ElementPedagogique implements HistoriqueAwareInterface, ResourceInterface, * * @return integer */ public function getId() public function getId(): ?int { return $this->id; } Loading module/Plafond/src/Entity/PlafondQueryParams.php +33 −4 Changes for module/Plafond/src/Entity/PlafondQueryParams.php: 33 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -8,18 +8,47 @@ use Service\Entity\Db\TypeVolumeHoraire; class PlafondQueryParams { public TypeVolumeHoraire $typeVolumeHoraire; public PlafondDataInterface $entity; public bool $useView = false; public bool $depassementsUniquement = false; public bool $bloquantUniquement = false; public bool $bloquantOuDepassementUniquement = false; public array $entities = []; public function sub(PlafondDataInterface $entity): PlafondQueryParams public function sub(): PlafondQueryParams { $sub = clone $this; $sub->entity = $entity; $sub = new self; $sub->typeVolumeHoraire = $this->typeVolumeHoraire; $sub->useView = $this->useView; $sub->depassementsUniquement = $this->depassementsUniquement; $sub->bloquantUniquement = $this->bloquantUniquement; return $sub; } public function add(?PlafondDataInterface $plafondData): self { if (!$plafondData) { return $this; } $class = $plafondData::class; $proxy = 'DoctrineORMModule\\Proxy\\__CG__\\'; if (str_starts_with($class, $proxy)){ $class = substr($class, strlen($proxy)); } if (!array_key_exists($class, $this->entities)) { $this->entities[$class] = []; } $this->entities[$class][$plafondData->getId()] = $plafondData; return $this; } } No newline at end of file module/Plafond/src/Interfaces/PlafondDataInterface.php +1 −1 Changes for module/Plafond/src/Interfaces/PlafondDataInterface.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,5 +4,5 @@ namespace Plafond\Interfaces; interface PlafondDataInterface { public function getId(): ?int; } No newline at end of file Loading
module/Application/src/Entity/Db/Intervenant.php +5 −3 Changes for module/Application/src/Entity/Db/Intervenant.php: 5 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ use Contrat\Entity\Db\TypeContrat; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Dossier\Entity\Db\Traits\EmployeurAwareTrait; use Enseignement\Entity\Db\Service; use Indicateur\Entity\Db\IndicModifDossier; use Intervenant\Entity\Db\Statut; use Laminas\Hydrator\ClassMethodsHydrator; Loading @@ -23,6 +24,7 @@ use Mission\Entity\Db\Mission; use OffreFormation\Entity\Db\Traits\DisciplineAwareTrait; use Paiement\Entity\Db\MiseEnPaiementIntervenantStructure; use Plafond\Interfaces\PlafondDataInterface; use Referentiel\Entity\Db\ServiceReferentiel; use Service\Entity\Db\EtatVolumeHoraire; use Service\Entity\Db\HistoIntervenantService; use Service\Entity\Db\ModificationServiceDu; Loading Loading @@ -1560,7 +1562,7 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import /** * Get service * * @return Collection * @return Collection|Service[] */ public function getService() { Loading @@ -1572,7 +1574,7 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import /** * Get service référentiel * * @return Collection * @return Collection|ServiceReferentiel[] */ public function getServiceReferentiel() { Loading Loading @@ -1606,7 +1608,7 @@ class Intervenant implements HistoriqueAwareInterface, ResourceInterface, Import /** * Get missions * * @return Collection|null * @return Collection|null|Mission[] */ public function getMissions(): ?Collection { Loading
module/Mission/src/Entity/Db/Mission.php −2 Changes for module/Mission/src/Entity/Db/Mission.php: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ namespace Mission\Entity\Db; use Application\Constants; use Application\Entity\Db\DomaineFonctionnel; use Application\Entity\Db\Intervenant; use Application\Entity\Db\Periode; use Application\Entity\Db\Traits\IntervenantAwareTrait; use Application\Entity\Db\Traits\StructureAwareTrait; use Application\Entity\Db\Validation; Loading @@ -14,7 +13,6 @@ use Doctrine\Common\Collections\Collection; use Laminas\Permissions\Acl\Resource\ResourceInterface; use OffreFormation\Entity\Db\TypeHeures; use Paiement\Entity\Db\CentreCout; use Paiement\Entity\Db\MiseEnPaiement; use Paiement\Entity\Db\MiseEnPaiementListe; use Paiement\Entity\Db\ServiceAPayerInterface; use Paiement\Entity\Db\ServiceAPayerTrait; Loading
module/OffreFormation/src/Entity/Db/ElementPedagogique.php +1 −1 Changes for module/OffreFormation/src/Entity/Db/ElementPedagogique.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -525,7 +525,7 @@ class ElementPedagogique implements HistoriqueAwareInterface, ResourceInterface, * * @return integer */ public function getId() public function getId(): ?int { return $this->id; } Loading
module/Plafond/src/Entity/PlafondQueryParams.php +33 −4 Changes for module/Plafond/src/Entity/PlafondQueryParams.php: 33 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -8,18 +8,47 @@ use Service\Entity\Db\TypeVolumeHoraire; class PlafondQueryParams { public TypeVolumeHoraire $typeVolumeHoraire; public PlafondDataInterface $entity; public bool $useView = false; public bool $depassementsUniquement = false; public bool $bloquantUniquement = false; public bool $bloquantOuDepassementUniquement = false; public array $entities = []; public function sub(PlafondDataInterface $entity): PlafondQueryParams public function sub(): PlafondQueryParams { $sub = clone $this; $sub->entity = $entity; $sub = new self; $sub->typeVolumeHoraire = $this->typeVolumeHoraire; $sub->useView = $this->useView; $sub->depassementsUniquement = $this->depassementsUniquement; $sub->bloquantUniquement = $this->bloquantUniquement; return $sub; } public function add(?PlafondDataInterface $plafondData): self { if (!$plafondData) { return $this; } $class = $plafondData::class; $proxy = 'DoctrineORMModule\\Proxy\\__CG__\\'; if (str_starts_with($class, $proxy)){ $class = substr($class, strlen($proxy)); } if (!array_key_exists($class, $this->entities)) { $this->entities[$class] = []; } $this->entities[$class][$plafondData->getId()] = $plafondData; return $this; } } No newline at end of file
module/Plafond/src/Interfaces/PlafondDataInterface.php +1 −1 Changes for module/Plafond/src/Interfaces/PlafondDataInterface.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,5 +4,5 @@ namespace Plafond\Interfaces; interface PlafondDataInterface { public function getId(): ?int; } No newline at end of file