1 | <?php |
||
13 | class Application implements ApplicationInterface, CollectionableInterface |
||
14 | { |
||
15 | use CollectionableTrait, SerializableTrait; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | protected $id; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $apiKey; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $secret; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $domain; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $allowedScopes; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $allowedGrantTypes; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | protected $roles; |
||
51 | |||
52 | /** |
||
53 | * @var array |
||
54 | */ |
||
55 | protected $accounts; |
||
56 | |||
57 | /** |
||
58 | * Construct. |
||
59 | */ |
||
60 | 12 | public function __construct() |
|
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getId() |
||
74 | |||
75 | /** |
||
76 | * @see ApplicationInterface::getApiKey() |
||
77 | */ |
||
78 | public function getApiKey() |
||
82 | |||
83 | /** |
||
84 | * Define Application apiKey value. |
||
85 | * |
||
86 | * @param string $apiKey |
||
87 | * |
||
88 | * @return self |
||
89 | */ |
||
90 | public function setApiKey($apiKey) |
||
96 | |||
97 | /** |
||
98 | * @see ApplicationInterface::getSecret() |
||
99 | */ |
||
100 | public function getSecret() |
||
104 | |||
105 | /** |
||
106 | * Define Application secret value. |
||
107 | * |
||
108 | * @param string $secret |
||
109 | * |
||
110 | * @return self |
||
111 | */ |
||
112 | public function setSecret($secret) |
||
118 | |||
119 | /** |
||
120 | * @see ApplicationInterface::getDomain() |
||
121 | */ |
||
122 | public function getDomain() |
||
126 | |||
127 | /** |
||
128 | * Define Application domain value. |
||
129 | * |
||
130 | * @param string $domain |
||
131 | * |
||
132 | * @return self |
||
133 | */ |
||
134 | public function setDomain($domain) |
||
140 | |||
141 | /** |
||
142 | * @see ApplicationInterface::getAllowedScopes() |
||
143 | */ |
||
144 | public function getAllowedScopes() |
||
148 | |||
149 | /** |
||
150 | * Define Application allowedScopes value. |
||
151 | * |
||
152 | * @param array $allowedScopes |
||
153 | * |
||
154 | * @return self |
||
155 | */ |
||
156 | public function setAllowedScopes(array $allowedScopes) |
||
162 | |||
163 | /** |
||
164 | * @see ApplicationInterface::getAllowedGrantTypes() |
||
165 | */ |
||
166 | 12 | public function getAllowedGrantTypes() |
|
170 | |||
171 | /** |
||
172 | * Define Application allowedGrantTypes value. |
||
173 | * |
||
174 | * @param array $allowedGrantTypes |
||
175 | * |
||
176 | * @return self |
||
177 | */ |
||
178 | 6 | public function setAllowedGrantTypes(array $allowedGrantTypes) |
|
184 | |||
185 | /** |
||
186 | * @see ApplicationInterface::getRoles() |
||
187 | */ |
||
188 | public function getRoles() |
||
192 | |||
193 | /** |
||
194 | * Define Application roles value. |
||
195 | * |
||
196 | * @param array $roles |
||
197 | * |
||
198 | * @return self |
||
199 | */ |
||
200 | public function setRoles(array $roles) |
||
206 | |||
207 | /** |
||
208 | * @return array |
||
209 | */ |
||
210 | public function getAccounts() |
||
214 | |||
215 | /** |
||
216 | * @param array $accounts |
||
217 | */ |
||
218 | public function setAccounts($accounts) |
||
222 | |||
223 | public static function getScopes() |
||
227 | } |
||
228 |