| Total Complexity | 15 |
| Total Lines | 74 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class NotReadableStream implements StreamInterface |
||
| 15 | { |
||
| 16 | public function __toString(): string |
||
| 17 | { |
||
| 18 | throw new \RuntimeException(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function close(): void |
||
| 22 | { |
||
| 23 | } |
||
| 24 | |||
| 25 | public function detach() |
||
| 26 | { |
||
| 27 | return null; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getSize(): ?int |
||
| 31 | { |
||
| 32 | return null; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function tell(): int |
||
| 36 | { |
||
| 37 | throw new \RuntimeException(); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function eof(): bool |
||
| 41 | { |
||
| 42 | return false; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function isSeekable(): bool |
||
| 48 | } |
||
| 49 | |||
| 50 | public function seek($offset, $whence = SEEK_SET): void |
||
| 51 | { |
||
| 52 | throw new \RuntimeException(); |
||
| 53 | } |
||
| 54 | |||
| 55 | public function rewind(): void |
||
| 56 | { |
||
| 57 | throw new \RuntimeException(); |
||
| 58 | } |
||
| 59 | |||
| 60 | public function isWritable(): bool |
||
| 61 | { |
||
| 62 | return false; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function write($string): int |
||
| 68 | } |
||
| 69 | |||
| 70 | public function isReadable(): bool |
||
| 71 | { |
||
| 72 | return false; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function read($length): string |
||
| 76 | { |
||
| 77 | throw new \RuntimeException(); |
||
| 78 | } |
||
| 79 | |||
| 80 | public function getContents(): string |
||
| 83 | } |
||
| 84 | |||
| 85 | public function getMetadata($key = null) |
||
| 88 | } |
||
| 89 | } |
||
| 90 |