27 lines
541 B
PHP
27 lines
541 B
PHP
<?php
|
|
|
|
namespace Yeepay\Yop\Sdk\Auth;
|
|
|
|
class AuthorityReqRegistryImpl implements AuthorizationReqRegistry
|
|
{
|
|
|
|
private $authorizationReqs = [];
|
|
|
|
/**
|
|
* @param $operationId string
|
|
* @param $securityReq AuthorizationReq
|
|
* @return $this
|
|
*/
|
|
public function register($operationId, $securityReq)
|
|
{
|
|
$this->authorizationReqs[$operationId] = $securityReq;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getAuthorizationReq($operationId)
|
|
{
|
|
return $this->authorizationReqs[$operationId];
|
|
}
|
|
|
|
} |