| 1 | <?php |
||
| 8 | class HttpClient |
||
| 9 | { |
||
| 10 | const API_URL = 'https://api.unsplash.com/'; |
||
| 11 | |||
| 12 | protected $client; |
||
| 13 | |||
| 14 | private $accessKey; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Creates a new instance of HttpClient |
||
| 18 | * @return MarkSitko\LaravelUnsplash\Http\HttpClient |
||
|
|
|||
| 19 | */ |
||
| 20 | public function __construct() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initalize and store configuration values in class properties |
||
| 30 | * @return MarkSitko\LaravelUnsplash\Http\HttpClient |
||
| 31 | */ |
||
| 32 | private function initalizeConfiguration() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Instantiate the GuzzleHttp Client |
||
| 45 | * @return MarkSitko\LaravelUnsplash\Http\HttpClient |
||
| 46 | */ |
||
| 47 | private function createClient() |
||
| 59 | } |
||
| 60 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.