Total Complexity | 5 |
Total Lines | 78 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | class LogIO implements Replicated |
||
19 | { |
||
20 | /** |
||
21 | * @var Environment |
||
22 | */ |
||
23 | private $env = null; |
||
24 | |||
25 | /** |
||
26 | * @var Connections |
||
27 | */ |
||
28 | private $cmg = null; |
||
29 | |||
30 | /** |
||
31 | * @var Address |
||
32 | */ |
||
33 | private $recv = null; |
||
34 | |||
35 | /** |
||
36 | * @var Outputter |
||
37 | */ |
||
38 | private $pipe = null; |
||
39 | |||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | private $assets = []; |
||
44 | |||
45 | /** |
||
46 | * LogIO constructor. |
||
47 | * @param Environment $env |
||
48 | * @param Connections $cmg |
||
49 | * @param Address $recv |
||
50 | */ |
||
51 | public function __construct(Environment $env, Connections $cmg, Address $recv) |
||
52 | { |
||
53 | $this->env = $env; |
||
54 | $this->cmg = $cmg; |
||
55 | $this->recv = $recv; |
||
56 | |||
57 | $this->pipe = $cmg->hosting($recv, static function (Address $recv) { |
||
58 | return new TCP($recv); |
||
59 | }); |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | */ |
||
64 | public function __destruct() |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @param string $scene |
||
71 | * @param string $level |
||
72 | * @param string $message |
||
73 | * @param array $context |
||
74 | */ |
||
75 | public function send(string $scene, string $level, string $message, array $context) : void |
||
96 | } |
||
97 | } |
||
98 |