1 | <?php |
||
26 | class ClientUtility implements SingletonInterface |
||
27 | { |
||
28 | const AUTHORIZATION_ENDPOINT = 'https://api.hubic.com/oauth/auth/'; |
||
29 | |||
30 | const TOKEN_ENDPOINT = 'https://api.hubic.com/oauth/token/'; |
||
31 | |||
32 | const DOMAIN_API = 'https://api.hubic.com/'; |
||
33 | |||
34 | const VERSION_API = '1.0'; |
||
35 | |||
36 | /** |
||
37 | * @var \Filoucrackeur\Hubic\Service\OAuth2\Client |
||
38 | */ |
||
39 | protected $OAuth; |
||
40 | |||
41 | /** |
||
42 | * @var \TYPO3\CMS\Extbase\Object\ObjectManager |
||
43 | */ |
||
44 | protected $objectManager; |
||
45 | |||
46 | /** |
||
47 | * @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager |
||
48 | */ |
||
49 | protected $persistenceManager; |
||
50 | |||
51 | /** |
||
52 | * @var \Filoucrackeur\Hubic\Domain\Model\Account |
||
53 | */ |
||
54 | protected $account; |
||
55 | |||
56 | |||
57 | |||
58 | /** |
||
59 | * @param ObjectManager $objectManager |
||
60 | */ |
||
61 | public function injectAccount(ObjectManager $objectManager) { |
||
62 | $this->objectManager = $objectManager; |
||
|
|||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @param PersistenceManager $persistenceManager |
||
67 | */ |
||
68 | public function injectPersistenceManager(PersistenceManager $persistenceManager) { |
||
69 | $this->persistenceManager = $persistenceManager; |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * @param Account $account |
||
74 | */ |
||
75 | public function injectAccount(Account $account) { |
||
78 | |||
79 | /** |
||
80 | * @param Account $account |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function callHubic(Account $account) : bool |
||
116 | |||
117 | public function getAccount() |
||
122 | |||
123 | /** |
||
124 | * @param Account $account |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getRedirectUri(Account $account) |
||
143 | |||
144 | /** |
||
145 | * @param Account $account |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getAuthorizationRequestUrl(Account $account) |
||
154 | |||
155 | /** |
||
156 | * Get hubiC account Quota |
||
157 | * |
||
158 | * @see https://api.hubic.com/console/ |
||
159 | * @return array |
||
160 | */ |
||
161 | public function getAccountQuota() |
||
166 | |||
167 | /** |
||
168 | * Get hubiC agreements |
||
169 | * |
||
170 | * @see https://api.hubic.com/console/ |
||
171 | * @return array |
||
172 | */ |
||
173 | public function getAgreement() |
||
178 | |||
179 | /** |
||
180 | * Get hubiC getAllLinks |
||
181 | * |
||
182 | * @see https://api.hubic.com/console/ |
||
183 | * @return array |
||
184 | */ |
||
185 | public function getAllLinks() |
||
190 | |||
191 | /** |
||
192 | * @param Account $account |
||
193 | */ |
||
194 | public function setAccount(Account $account) |
||
198 | |||
199 | } |
||
200 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..