From 65c47149ee8933a2f87ecabd17e522a75b9d1249 Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Thu, 7 Dec 2023 17:46:25 +0100 Subject: [PATCH] Added return types --- .../Provider/Provider.php | 29 +++++-------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/src/Surfnet/StepupSelfService/SamlStepupProviderBundle/Provider/Provider.php b/src/Surfnet/StepupSelfService/SamlStepupProviderBundle/Provider/Provider.php index 375cce45f..b9959356c 100644 --- a/src/Surfnet/StepupSelfService/SamlStepupProviderBundle/Provider/Provider.php +++ b/src/Surfnet/StepupSelfService/SamlStepupProviderBundle/Provider/Provider.php @@ -24,45 +24,30 @@ final class Provider { - /** - * @param string $name - */ public function __construct( - private $name, - private readonly ServiceProvider $serviceProvider, + private readonly string $name, + private readonly ServiceProvider $serviceProvider, private readonly IdentityProvider $remoteIdentityProvider, - private readonly StateHandler $stateHandler + private readonly StateHandler $stateHandler ) { } - /** - * @return StateHandler - */ - public function getStateHandler(): \Surfnet\StepupSelfService\SamlStepupProviderBundle\Saml\StateHandler + public function getStateHandler(): StateHandler { return $this->stateHandler; } - /** - * @return IdentityProvider - */ - public function getRemoteIdentityProvider(): \Surfnet\SamlBundle\Entity\IdentityProvider + public function getRemoteIdentityProvider(): IdentityProvider { return $this->remoteIdentityProvider; } - /** - * @return ServiceProvider - */ - public function getServiceProvider(): \Surfnet\SamlBundle\Entity\ServiceProvider + public function getServiceProvider(): ServiceProvider { return $this->serviceProvider; } - /** - * @return string - */ - public function getName() + public function getName(): string { return $this->name; }