apie-lib /
openapi-schema
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Apie\OpenapiSchema\Spec; |
||
| 5 | |||
| 6 | use Apie\CommonValueObjects\Url; |
||
| 7 | use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension; |
||
| 8 | use Apie\OpenapiSchema\Map\ScopesMap; |
||
| 9 | use Apie\ValueObjects\ValueObjectInterface; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @see https://swagger.io/specification/#oauth-flow-object |
||
| 13 | */ |
||
| 14 | class OAuthFlow implements ValueObjectInterface |
||
| 15 | { |
||
| 16 | use CompositeValueObjectWithExtension; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Url|null |
||
| 20 | */ |
||
| 21 | private $authorizationUrl; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Url|null |
||
| 25 | */ |
||
| 26 | private $tokenUrl; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Url|null |
||
| 30 | */ |
||
| 31 | private $refreshUrl; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var ScopesMap |
||
| 35 | */ |
||
| 36 | private $scopes; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return Url|null |
||
| 40 | */ |
||
| 41 | public function getAuthorizationUrl(): ?Url |
||
| 42 | { |
||
| 43 | return $this->authorizationUrl; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return Url|null |
||
| 48 | */ |
||
| 49 | public function getTokenUrl(): ?Url |
||
| 50 | { |
||
| 51 | return $this->tokenUrl; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Url|null |
||
| 56 | */ |
||
| 57 | public function getRefreshUrl(): ?Url |
||
| 58 | { |
||
| 59 | return $this->refreshUrl; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return ScopesMap |
||
| 64 | */ |
||
| 65 | public function getScopes(): ScopesMap |
||
| 66 | { |
||
| 67 | return $this->scopes; |
||
| 68 | } |
||
| 69 | } |
||
| 70 |