| 1 | <?php |
||
| 5 | class CoverCache |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param string $key |
||
| 9 | * |
||
| 10 | * @return string |
||
| 11 | */ |
||
| 12 | public function url($key) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $url |
||
| 23 | * |
||
| 24 | * @return CachedImage |
||
| 25 | */ |
||
| 26 | public function get($url) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $url |
||
| 33 | * @param int $maxHeight |
||
| 34 | * |
||
| 35 | * @throws \ErrorException |
||
| 36 | * |
||
| 37 | * @return CachedImage |
||
| 38 | */ |
||
| 39 | public function putUrl($url, $maxHeight = 0) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param binary $blob |
||
| 49 | * @param int $maxHeight |
||
| 50 | * |
||
| 51 | * @throws \ErrorException |
||
| 52 | * |
||
| 53 | * @return CachedImage |
||
| 54 | */ |
||
| 55 | public function putBlob($blob, $maxHeight = 0) |
||
| 62 | } |
||
| 63 |