| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 12 | protected function createSocketResource($address, $context) |
|
| 39 | { |
||
| 40 | 12 | if ($this->acceptedResource) { |
|
| 41 | 12 | $result = $this->acceptedResource; |
|
| 42 | 12 | $this->acceptedResource = null; |
|
| 43 | |||
| 44 | 12 | return $result; |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | throw new NetworkSocketException($this, 'Remote client socket can not be reopened.'); |
|
| 48 | } |
||
| 49 | } |
||
| 50 |