1 | <?php |
||
10 | class Application implements ApplicationInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | protected $id; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $apiKey; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $secret; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $domain; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $allowedScopes; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $allowedGrantTypes; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $roles; |
||
46 | |||
47 | /** |
||
48 | * Construct. |
||
49 | */ |
||
50 | public function __construct() |
||
56 | |||
57 | /** |
||
58 | * @return int |
||
59 | */ |
||
60 | public function getId() |
||
64 | |||
65 | /** |
||
66 | * @see ApplicationInterface::getApiKey() |
||
67 | */ |
||
68 | public function getApiKey() |
||
72 | |||
73 | /** |
||
74 | * Define Application apiKey value. |
||
75 | * |
||
76 | * @param string $apiKey |
||
77 | * |
||
78 | * @return self |
||
79 | */ |
||
80 | public function setApiKey($apiKey) |
||
86 | |||
87 | /** |
||
88 | * @see ApplicationInterface::getSecret() |
||
89 | */ |
||
90 | public function getSecret() |
||
94 | |||
95 | /** |
||
96 | * Define Application secret value. |
||
97 | * |
||
98 | * @param string $secret |
||
99 | * |
||
100 | * @return self |
||
101 | */ |
||
102 | public function setSecret($secret) |
||
108 | |||
109 | /** |
||
110 | * @see ApplicationInterface::getDomain() |
||
111 | */ |
||
112 | public function getDomain() |
||
116 | |||
117 | /** |
||
118 | * Define Application domain value. |
||
119 | * |
||
120 | * @param string $domain |
||
121 | * |
||
122 | * @return self |
||
123 | */ |
||
124 | public function setDomain($domain) |
||
130 | |||
131 | /** |
||
132 | * @see ApplicationInterface::getAllowedScopes() |
||
133 | */ |
||
134 | public function getAllowedScopes() |
||
138 | |||
139 | /** |
||
140 | * Define Application allowedScopes value. |
||
141 | * |
||
142 | * @param array $allowedScopes |
||
143 | * |
||
144 | * @return self |
||
145 | */ |
||
146 | public function setAllowedScopes(array $allowedScopes) |
||
152 | |||
153 | /** |
||
154 | * @see ApplicationInterface::getAllowedGrantTypes() |
||
155 | */ |
||
156 | public function getAllowedGrantTypes() |
||
160 | |||
161 | /** |
||
162 | * Define Application allowedGrantTypes value. |
||
163 | * |
||
164 | * @param array $allowedGrantTypes |
||
165 | * |
||
166 | * @return self |
||
167 | */ |
||
168 | public function setAllowedGrantTypes(array $allowedGrantTypes) |
||
174 | |||
175 | /** |
||
176 | * @see ApplicationInterface::getRoles() |
||
177 | */ |
||
178 | public function getRoles() |
||
182 | |||
183 | /** |
||
184 | * Define Application roles value. |
||
185 | * |
||
186 | * @param array $roles |
||
187 | * |
||
188 | * @return self |
||
189 | */ |
||
190 | public function setRoles(array $roles) |
||
196 | } |
||
197 |