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 $clientId = null; |
||
33 | |||
34 | /** |
||
35 | * @var null|string |
||
36 | */ |
||
37 | private $resourceOwnerId = null; |
||
38 | |||
39 | /** |
||
40 | * @param array $data an array of key/value parameters |
||
41 | * |
||
42 | * @throws \BadMethodCallException |
||
43 | */ |
||
44 | public function __construct(array $data) |
||
59 | |||
60 | /** |
||
61 | * @param string $clientId |
||
62 | */ |
||
63 | protected function setClientId(string $clientId) |
||
67 | |||
68 | /** |
||
69 | * @return null|string |
||
70 | */ |
||
71 | public function getClientId(): ?string |
||
75 | |||
76 | /** |
||
77 | * @param string $resourceOwnerId |
||
78 | */ |
||
79 | protected function setResourceOwnerId(string $resourceOwnerId) |
||
83 | |||
84 | /** |
||
85 | * @return null|string |
||
86 | */ |
||
87 | public function getResourceOwnerId(): ?string |
||
91 | |||
92 | /** |
||
93 | * @param string $scope |
||
94 | */ |
||
95 | protected function setScope(string $scope) |
||
99 | |||
100 | /** |
||
101 | * @return null|string |
||
102 | */ |
||
103 | public function getScope(): ?string |
||
107 | } |
||
108 |