Свойство | Тип | Описание | |
---|---|---|---|
$baseUrl | string | BaseUrl | |
$client | object | Instance of Guzzle Client |
Метод | Описание | |
---|---|---|
__construct ( ) | Initialize the Controller with necessary arguments | |
getPage ( ) : array | Return all the data to the New York times API dashboard | |
getRelativeUrl ( ) : string | Get relative url |
Метод | Описание | |
---|---|---|
getData ( ) : array | Get the data response from a get operation | |
getResponse ( ) : array | Get the whole response from a get operation | |
setGetResponse ( string $relativeUrl ) | Get the response from New York times API |
public __construct ( ) |
public getRelativeUrl ( ) : string | ||
Результат | string |