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