Endroid\Gcm\Client::__construct PHP Method

__construct() public method

Class constructor.
public __construct ( $apiKey, null $apiUrl = null )
$apiKey
$apiUrl null
    public function __construct($apiKey, $apiUrl = null)
    {
        $this->apiKey = $apiKey;
        if ($apiUrl) {
            $this->apiUrl = $apiUrl;
        }
        $this->client = new MultiCurl();
        $this->client->setVerifyPeer(false);
        $this->browser = new Browser($this->client);
    }