first commit
This commit is contained in:
27
lib/Auth/AuthorityReqRegistryImpl.php
Normal file
27
lib/Auth/AuthorityReqRegistryImpl.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user