Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
9 | public function connect(string $address, int $port = 0, array $options = []): TransportInterface |
||
10 | { |
||
11 | $mode = $options['mode'] ?? 'a'; |
||
12 | $include_path = $options['use_include_path'] ?? false; |
||
13 | $context = $options['context'] ?? null; |
||
14 | |||
15 | $this->socket = fopen($address, $mode, $include_path, $context); |
||
16 | |||
17 | return $this; |
||
18 | } |
||
19 | } |
||
20 |