1 | <?php |
||
7 | class Certificate |
||
8 | { |
||
9 | protected $rawCert; |
||
10 | protected $certData; |
||
11 | |||
12 | /** |
||
13 | * Certificate constructor. |
||
14 | * |
||
15 | * @param string $certificate |
||
16 | */ |
||
17 | 6 | public function __construct($certificate) |
|
22 | |||
23 | /** |
||
24 | * @return DateTime |
||
25 | */ |
||
26 | 3 | public function validFrom() |
|
32 | |||
33 | /** |
||
34 | * @return DateTime |
||
35 | */ |
||
36 | 3 | public function validTo() |
|
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | 3 | public function certName() |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 6 | public function toString() |
|
55 | { |
||
56 | 6 | return $this->rawCert; |
|
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function __toString() |
||
66 | } |
||
67 |