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