| Total Complexity | 6 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class CommandStream extends Stream |
||
| 25 | { |
||
| 26 | /** @var string */ |
||
| 27 | public $host; |
||
| 28 | |||
| 29 | /** @var int */ |
||
| 30 | public $port; |
||
| 31 | |||
| 32 | /** @var int */ |
||
| 33 | public $timeout; |
||
| 34 | |||
| 35 | /** @var bool */ |
||
| 36 | public $blocking; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * CommandStream constructor. |
||
| 40 | * |
||
| 41 | * @param LoggerInterface $logger |
||
| 42 | * @param string $host |
||
| 43 | * @param int $port |
||
| 44 | * @param int $timeout |
||
| 45 | * @param bool $blocking |
||
| 46 | */ |
||
| 47 | public function __construct($logger, $host, $port, $timeout, $blocking) |
||
| 48 | { |
||
| 49 | parent::__construct($logger); |
||
| 50 | $this->host = $host; |
||
| 51 | $this->port = $port; |
||
| 52 | $this->timeout = $timeout; |
||
| 53 | $this->blocking = $blocking; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritDoc |
||
| 58 | */ |
||
| 59 | public function read() |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @inheritDoc |
||
| 82 | */ |
||
| 83 | public function open() |
||
| 91 | } |
||
| 92 | } |