| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | final public function send(string $request): int |
||
| 57 | { |
||
| 58 | $this->verifyConnection(); |
||
| 59 | |||
| 60 | $bytesWritten = fwrite($this->resource, $request); |
||
| 61 | |||
| 62 | if ($bytesWritten === false) { |
||
| 63 | throw new \RuntimeException(sprintf('Could not send command:')); |
||
| 64 | } |
||
| 65 | |||
| 66 | $this->verifyAlive(); |
||
| 67 | |||
| 68 | return $bytesWritten; |
||
| 69 | } |
||
| 70 | |||
| 105 | } |