| 1 | <?php |
||
| 17 | abstract class AbstractIo implements IoInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Amount of attempts to set data |
||
| 21 | */ |
||
| 22 | const IO_ATTEMPTS = 10; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Socket |
||
| 26 | * |
||
| 27 | * @var SocketInterface |
||
| 28 | */ |
||
| 29 | protected $socket; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * AbstractIo constructor. |
||
| 33 | * |
||
| 34 | * @param SocketInterface $socket Socket object |
||
| 35 | */ |
||
| 36 | 232 | public function __construct(SocketInterface $socket) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Return last php error message as string |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 4 | protected function getLastPhpErrorMessage() |
|
| 57 | } |
||
| 58 |