1 | <?php |
||
5 | class Reader |
||
6 | { |
||
7 | const CONNECTION_TIMEOUT = 30; |
||
8 | |||
9 | /** |
||
10 | * @param $url |
||
11 | * @return Certificate |
||
12 | * @throws Exception |
||
13 | */ |
||
14 | 1 | public function readFromUrl($url) |
|
42 | |||
43 | /** |
||
44 | * @param $file |
||
45 | * @return Certificate |
||
46 | * @throws Exception |
||
47 | */ |
||
48 | 8 | public function readFromFile($file) |
|
56 | |||
57 | /** |
||
58 | * @param $certResource |
||
59 | * @return string |
||
60 | */ |
||
61 | 1 | protected function certResourceToString($certResource) |
|
69 | } |
||
70 |