1 | <?php |
||
22 | class OAuth2 |
||
23 | { |
||
24 | /** |
||
25 | * @var null|string |
||
26 | */ |
||
27 | private $scope = null; |
||
28 | |||
29 | /** |
||
30 | * @var null|string |
||
31 | */ |
||
32 | private $token_type = null; |
||
33 | |||
34 | /** |
||
35 | * @var null|string |
||
36 | */ |
||
37 | private $client_id = null; |
||
38 | |||
39 | /** |
||
40 | * @var null|string |
||
41 | */ |
||
42 | private $resource_owner_id = null; |
||
43 | |||
44 | /** |
||
45 | * @param array $data an array of key/value parameters |
||
46 | * |
||
47 | * @throws \BadMethodCallException |
||
48 | */ |
||
49 | public function __construct(array $data) |
||
58 | |||
59 | /** |
||
60 | * @return null|string |
||
61 | */ |
||
62 | public function getClientId(): ?string |
||
66 | |||
67 | /** |
||
68 | * @return null|string |
||
69 | */ |
||
70 | public function getResourceOwnerId(): ?string |
||
74 | |||
75 | /** |
||
76 | * @return null|string |
||
77 | */ |
||
78 | public function getScope(): ?string |
||
82 | |||
83 | /** |
||
84 | * @return null|string |
||
85 | */ |
||
86 | public function getTokenType(): ?string |
||
90 | } |
||
91 |