| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class UnseekableStreamException extends RuntimeException |
||
| 23 | { |
||
| 24 | public static function dueToConfiguration() : self |
||
| 25 | { |
||
| 26 | return new self('Stream is not seekable'); |
||
| 27 | } |
||
| 28 | |||
| 29 | public static function dueToMissingResource() : self |
||
| 30 | { |
||
| 31 | return new self('No resource available; cannot seek position'); |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function dueToPhpError() : self |
||
| 35 | { |
||
| 36 | return new self('Error seeking within stream'); |
||
| 37 | } |
||
| 38 | |||
| 39 | public static function forCallbackStream() : self |
||
| 42 | } |
||
| 43 | } |
||
| 44 |