PHP Class App\Http\Controllers\YahooController

Inheritance: extends Controller
Show file Open project: unicodeveloper/laravel-hackathon-starter

Protected Properties

Property Type Description
$baseUrl string BaseUrl
$client object Instance of Guzzle Client

Public Methods

Method Description
__construct ( ) Initialize the Controller with necessary arguments
getPage ( ) : mixed Return all data to the Yahoo API dashboard

Private Methods

Method Description
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 Yahoo API

Method Details

__construct() public method

Initialize the Controller with necessary arguments
public __construct ( )

getPage() public method

Return all data to the Yahoo API dashboard
public getPage ( ) : mixed
return mixed

Property Details

$baseUrl protected property

BaseUrl
protected string $baseUrl
return string

$client protected property

Instance of Guzzle Client
protected object $client
return object