| 1 | <?php |
||
| 16 | class WebSocketClient |
||
| 17 | {
|
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | private $port; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $host; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | private $config; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var ConnectorFactoryInterface |
||
| 35 | */ |
||
| 36 | private $connectorFactory; |
||
| 37 | |||
| 38 | public function __construct(int $port, string $host, array $config = [], ConnectorFactoryInterface $connectorFactory = null) |
||
| 45 | |||
| 46 | public function start(MessageHandlerInterface $handler) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param array $config |
||
| 57 | * @return self |
||
| 58 | */ |
||
| 59 | public function setConfig(array $config = []) |
||
| 67 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.