for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NFePHP\Common\Certificate\Exception;
use NFePHP\Common\Certificate;
use NFePHP\Common\Exception\ExceptionInterface;
use NFePHP\Common\Exception\RuntimeException;
class Expired extends RuntimeException implements ExceptionInterface
{
public function __construct(Certificate $certificate)
$invalidDate = $certificate->getValidFrom()->format('Y-m-d H:i');
parent::__construct('Certificate invalid from '.$invalidDate, 0, null);
}