Wrep\Notificato\Apns\Certificate::getPassphrase PHP Method

getPassphrase() public method

Passphrase to use with the PEM file
public getPassphrase ( ) : string
return string
    public function getPassphrase()
    {
        return $this->passphrase;
    }

Usage Example

 /**
  * @dataProvider correctConstructorArguments
  */
 public function testGetPassphrase($pemFile, $passphrase, $validate, $endpoint)
 {
     $certificate = new Certificate($pemFile, $passphrase, $validate, $endpoint);
     $this->assertEquals($passphrase, $certificate->getPassphrase(), 'Get passphrase returned incorrect passphrase.');
 }