Endroid\Gcm\Client::getHeaders PHP Method

getHeaders() protected method

Returns the headers.
protected getHeaders ( ) : array
return array
    protected function getHeaders()
    {
        $headers = array('Authorization: key=' . $this->apiKey, 'Content-Type: application/json');
        return $headers;
    }