App\Http\Controllers\YahooController::__construct PHP Method

__construct() public method

Initialize the Controller with necessary arguments
public __construct ( )
    public function __construct()
    {
        $this->baseUrl = self::YAHOO_API;
        $this->client = new Client(['base_uri' => $this->baseUrl]);
        $query = "SELECT * FROM weather.forecast WHERE (location = 10007)";
        $relativeUrl = '?q=' . $query . '&format=json';
        $this->setGetResponse($relativeUrl);
    }