Loading module/Soutenance/src/Soutenance/Controller/PropositionController.php +4 −3 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ use Individu\Entity\Db\IndividuRole; use Information\Service\InformationServiceAwareTrait; use Laminas\Form\Form; use Laminas\Http\Request; use Laminas\Http\Response; use Laminas\View\Model\ViewModel; use Laminas\View\Renderer\PhpRenderer; use Notification\Service\NotifierServiceAwareTrait; Loading Loading @@ -88,7 +89,7 @@ class PropositionController extends AbstractController $this->renderer = $renderer; } public function propositionAction() public function propositionAction() : ViewModel|Response { $these = $this->requestedThese(); $proposition = $this->getPropositionService()->findOneForThese($these); Loading Loading @@ -309,7 +310,7 @@ class PropositionController extends AbstractController return $vm; } public function effacerMembreAction() public function effacerMembreAction() : ViewModel|Response { $these = $this->requestedThese(); $proposition = $this->getPropositionService()->findOneForThese($these); Loading Loading @@ -440,7 +441,7 @@ class PropositionController extends AbstractController return $vm; } public function validerActeurAction() public function validerActeurAction(): ViewModel|Response { $these = $this->requestedThese(); $proposition = $this->getPropositionService()->findOneForThese($these); Loading module/Soutenance/src/Soutenance/Entity/Justificatif.php +11 −49 Original line number Diff line number Diff line Loading @@ -9,82 +9,44 @@ use UnicaenApp\Entity\HistoriqueAwareTrait; class Justificatif implements HistoriqueAwareInterface { use HistoriqueAwareTrait; /** @var integer */ private $id; /** @var Proposition */ private $proposition; /** @var FichierThese */ private $fichier; /** @var Membre */ private $membre; private ?int $id = null; private ?Proposition $proposition = null; private ?FichierThese $fichier = null; private ?Membre $membre = null; /** * @return int */ public function getId() public function getId() : ?int { return $this->id; } /** * @return Proposition */ public function getProposition() public function getProposition() : ?Proposition { return $this->proposition; } /** * @param Proposition $proposition * @return Justificatif */ public function setProposition($proposition) public function setProposition(?Proposition $proposition) : void { $this->proposition = $proposition; return $this; } /** * @return FichierThese */ public function getFichier() public function getFichier() : ?FichierThese { return $this->fichier; } /** * @param FichierThese $fichier * @return Justificatif */ public function setFichier($fichier) public function setFichier(FichierThese $fichier) : void { $this->fichier = $fichier; return $this; } /** * @return Membre */ public function getMembre() public function getMembre() : ?Membre { return $this->membre; } /** * @param Membre $membre * @return Justificatif */ public function setMembre($membre) public function setMembre(?Membre $membre) : void { $this->membre = $membre; return $this; } /** * @return bool */ public function hasMembre() { return ($this->membre !== null); } } No newline at end of file module/Soutenance/src/Soutenance/Form/Justificatif/JusticatifHydrator.php +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class JusticatifHydrator implements HydratorInterface { * @param Justificatif $object * @return Justificatif */ public function hydrate(array $data, $object) public function hydrate(array $data, $object): Justificatif { /** @var Membre $membre */ $membre = $this->getMembreService()->find($data['membre']); Loading Loading
module/Soutenance/src/Soutenance/Controller/PropositionController.php +4 −3 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ use Individu\Entity\Db\IndividuRole; use Information\Service\InformationServiceAwareTrait; use Laminas\Form\Form; use Laminas\Http\Request; use Laminas\Http\Response; use Laminas\View\Model\ViewModel; use Laminas\View\Renderer\PhpRenderer; use Notification\Service\NotifierServiceAwareTrait; Loading Loading @@ -88,7 +89,7 @@ class PropositionController extends AbstractController $this->renderer = $renderer; } public function propositionAction() public function propositionAction() : ViewModel|Response { $these = $this->requestedThese(); $proposition = $this->getPropositionService()->findOneForThese($these); Loading Loading @@ -309,7 +310,7 @@ class PropositionController extends AbstractController return $vm; } public function effacerMembreAction() public function effacerMembreAction() : ViewModel|Response { $these = $this->requestedThese(); $proposition = $this->getPropositionService()->findOneForThese($these); Loading Loading @@ -440,7 +441,7 @@ class PropositionController extends AbstractController return $vm; } public function validerActeurAction() public function validerActeurAction(): ViewModel|Response { $these = $this->requestedThese(); $proposition = $this->getPropositionService()->findOneForThese($these); Loading
module/Soutenance/src/Soutenance/Entity/Justificatif.php +11 −49 Original line number Diff line number Diff line Loading @@ -9,82 +9,44 @@ use UnicaenApp\Entity\HistoriqueAwareTrait; class Justificatif implements HistoriqueAwareInterface { use HistoriqueAwareTrait; /** @var integer */ private $id; /** @var Proposition */ private $proposition; /** @var FichierThese */ private $fichier; /** @var Membre */ private $membre; private ?int $id = null; private ?Proposition $proposition = null; private ?FichierThese $fichier = null; private ?Membre $membre = null; /** * @return int */ public function getId() public function getId() : ?int { return $this->id; } /** * @return Proposition */ public function getProposition() public function getProposition() : ?Proposition { return $this->proposition; } /** * @param Proposition $proposition * @return Justificatif */ public function setProposition($proposition) public function setProposition(?Proposition $proposition) : void { $this->proposition = $proposition; return $this; } /** * @return FichierThese */ public function getFichier() public function getFichier() : ?FichierThese { return $this->fichier; } /** * @param FichierThese $fichier * @return Justificatif */ public function setFichier($fichier) public function setFichier(FichierThese $fichier) : void { $this->fichier = $fichier; return $this; } /** * @return Membre */ public function getMembre() public function getMembre() : ?Membre { return $this->membre; } /** * @param Membre $membre * @return Justificatif */ public function setMembre($membre) public function setMembre(?Membre $membre) : void { $this->membre = $membre; return $this; } /** * @return bool */ public function hasMembre() { return ($this->membre !== null); } } No newline at end of file
module/Soutenance/src/Soutenance/Form/Justificatif/JusticatifHydrator.php +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class JusticatifHydrator implements HydratorInterface { * @param Justificatif $object * @return Justificatif */ public function hydrate(array $data, $object) public function hydrate(array $data, $object): Justificatif { /** @var Membre $membre */ $membre = $this->getMembreService()->find($data['membre']); Loading