Loading module/Application/src/Application/Entity/Db/Etablissement.php +8 −8 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 8 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -88,11 +88,11 @@ class Etablissement } /** * Retourne le code de cet établissement, ex: 0761904GE' pour l'Université de Rouen. * Retourne le code de cet établissement ou null, ex: '0761904GE' pour l'Université de Rouen. * * @return string * @return string|null */ public function getCode(): string public function getCode(): ?string { return $this->code; } Loading Loading @@ -171,17 +171,17 @@ class Etablissement } /** * @return string * @return string|null */ public function getSigle() public function getSigle(): ?string { return $this->getStructure()->getSigle(); } /** * @param string $sigle * @param string|null $sigle */ public function setSigle($sigle) public function setSigle(string $sigle = null) { $this->getStructure()->setSigle($sigle); } Loading Loading @@ -335,7 +335,7 @@ class Etablissement */ public function createSearchFilterValueOption(): array { $label = $this->getCode(); $label = ($this->getCode() ?: $this->getSigle()) ?: $this->getLibelle(); if ($this->getStructure()->estFermee()) { $label .= " FERMÉ"; } Loading module/Application/src/Application/Entity/Db/Structure.php +3 −3 Changes for module/Application/src/Application/Entity/Db/Structure.php: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ class Structure implements StructureInterface, HistoriqueAwareInterface, SourceA * * @return string */ public function getCode() public function getCode(): string { // if ($this->code !== null) return $this->code; // if ($this->sourceCode !== null) { Loading @@ -211,9 +211,9 @@ class Structure implements StructureInterface, HistoriqueAwareInterface, SourceA } /** * @return string * @return string|null */ public function getSigle() public function getSigle(): ?string { return $this->sigle; } Loading Loading
module/Application/src/Application/Entity/Db/Etablissement.php +8 −8 Changes for module/Application/src/Application/Entity/Db/Etablissement.php: 8 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -88,11 +88,11 @@ class Etablissement } /** * Retourne le code de cet établissement, ex: 0761904GE' pour l'Université de Rouen. * Retourne le code de cet établissement ou null, ex: '0761904GE' pour l'Université de Rouen. * * @return string * @return string|null */ public function getCode(): string public function getCode(): ?string { return $this->code; } Loading Loading @@ -171,17 +171,17 @@ class Etablissement } /** * @return string * @return string|null */ public function getSigle() public function getSigle(): ?string { return $this->getStructure()->getSigle(); } /** * @param string $sigle * @param string|null $sigle */ public function setSigle($sigle) public function setSigle(string $sigle = null) { $this->getStructure()->setSigle($sigle); } Loading Loading @@ -335,7 +335,7 @@ class Etablissement */ public function createSearchFilterValueOption(): array { $label = $this->getCode(); $label = ($this->getCode() ?: $this->getSigle()) ?: $this->getLibelle(); if ($this->getStructure()->estFermee()) { $label .= " FERMÉ"; } Loading
module/Application/src/Application/Entity/Db/Structure.php +3 −3 Changes for module/Application/src/Application/Entity/Db/Structure.php: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ class Structure implements StructureInterface, HistoriqueAwareInterface, SourceA * * @return string */ public function getCode() public function getCode(): string { // if ($this->code !== null) return $this->code; // if ($this->sourceCode !== null) { Loading @@ -211,9 +211,9 @@ class Structure implements StructureInterface, HistoriqueAwareInterface, SourceA } /** * @return string * @return string|null */ public function getSigle() public function getSigle(): ?string { return $this->sigle; } Loading