| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class GrantTypeManager |
||
| 13 | { |
||
| 14 | protected $grantTypes = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $identifier |
||
| 18 | * @param GrantTypeInterface $grantType |
||
| 19 | * @return GrantTypeManager |
||
| 20 | * |
||
| 21 | * @see https://tools.ietf.org/html/rfc6749#section-4.5 |
||
| 22 | * The client uses an extension grant type by specifying the grant type |
||
| 23 | * using an absolute URI (defined by the authorization server) as the |
||
| 24 | * value of the "grant_type" parameter of the token endpoint, and by |
||
| 25 | * adding any additional parameters necessary. |
||
| 26 | */ |
||
| 27 | public function setGrantType(string $identifier, GrantTypeInterface $grantType): self |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getGrantType(string $identifier): ?GrantTypeInterface |
||
| 36 | } |
||
| 37 | } |