PHP 클래스 App\Http\Controllers\NytController

상속: extends Controller
파일 보기 프로젝트 열기: unicodeveloper/laravel-hackathon-starter

보호된 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__construct() 공개 메소드

Initialize the Controller with necessary arguments
public __construct ( )

getPage() 공개 메소드

Return all the data to the New York times API dashboard
public getPage ( ) : array
리턴 array

getRelativeUrl() 공개 메소드

Get relative url
public getRelativeUrl ( ) : string
리턴 string

프로퍼티 상세

$baseUrl 보호되어 있는 프로퍼티

BaseUrl
protected string $baseUrl
리턴 string

$client 보호되어 있는 프로퍼티

Instance of Guzzle Client
protected object $client
리턴 object