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

getValidTo() public method

Get moment this certificate will expire Note: Will return null if certificate validation was disabled
public getValidTo ( ) : DateTime | null
return DateTime | null
    public function getValidTo()
    {
        return $this->validTo;
    }

Usage Example

 /**
  * @group realpush
  */
 public function testValidationWithValidCert()
 {
     $cert = new Certificate(__DIR__ . '/../resources/paspas.pem', null);
     $this->assertNotNull($cert->getValidTo());
 }