Skip to content

Commit

Permalink
Added types
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Dec 16, 2023
1 parent 3eb58fa commit 9e3560c
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@
use Surfnet\StepupMiddlewareClientBundle\Identity\Dto\RegistrationAuthorityCredentialsCollection;
use Surfnet\StepupMiddlewareClientBundle\Identity\Service\RaService as ApiRaService;

class RaService
readonly class RaService
{
public function __construct(private readonly ApiRaService $api, private readonly CommandService $commandService)
{
public function __construct(
private ApiRaService $api,
private CommandService $commandService,
) {
}

/**
* @param string $institution
* @return RegistrationAuthorityCredentialsCollection
*/
public function listRas($institution)
public function listRas(string $institution): RegistrationAuthorityCredentialsCollection
{
return $this->api->listRas($institution);
}

public function listRasWithoutRaas($institution): \Surfnet\StepupMiddlewareClientBundle\Identity\Dto\RegistrationAuthorityCredentialsCollection
public function listRasWithoutRaas(string $institution): RegistrationAuthorityCredentialsCollection
{
$allRas = $this->api->listRas($institution);

Expand Down

0 comments on commit 9e3560c

Please sign in to comment.