| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait HasApiProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Determines whether the current object has ApiProvider instance. |
||
| 12 | * |
||
| 13 | * @return bool |
||
| 14 | */ |
||
| 15 | public function hasApiProvider() |
||
| 16 | { |
||
| 17 | return !is_null($this->apiProvider); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get the ApiProvider instance. |
||
| 22 | * |
||
| 23 | * @throws ApiProviderDoesNotExistsException |
||
| 24 | * |
||
| 25 | * @return ApiProvider |
||
| 26 | */ |
||
| 27 | public function getApiProvider() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |