| 1 | <?php |
||
| 9 | abstract class AbstractSslCertificateChecker extends AbstractChecker |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The Spatie SSL downloader. |
||
| 13 | * |
||
| 14 | * @var \Spatie\SslCertificate\Downloader $downloader |
||
| 15 | */ |
||
| 16 | protected $downloader; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The hostname that must be checked. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $hostname; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The port to request the certificate on. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $port = 443; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Creates a new instance of this checker with a Ssl Certificate Downloader. |
||
| 34 | * |
||
| 35 | * @param \Spatie\SslCertificate\Downloader $downloader |
||
| 36 | */ |
||
| 37 | public function __construct(Downloader $downloader) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Requests the URL and handles any thrown exceptions. |
||
| 44 | * |
||
| 45 | * @return null |
||
| 46 | */ |
||
| 47 | public function run() |
||
| 63 | } |
||
| 64 |