Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Forced implements Typed |
||
15 | { |
||
16 | /** |
||
17 | * local dev flag |
||
18 | */ |
||
19 | private const TAG = 'LOCAL_DEV'; |
||
20 | |||
21 | /** |
||
22 | * @var Endpoint[] |
||
23 | */ |
||
24 | private $nodes = []; |
||
25 | |||
26 | /** |
||
27 | * @param string ...$tags |
||
28 | * @return Endpoint[] |
||
29 | */ |
||
30 | public function picked(string ...$tags) : array |
||
31 | { |
||
32 | return $this->nodes; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $tag |
||
37 | * @param Endpoint $node |
||
38 | */ |
||
39 | public function classify(string $tag, Endpoint $node) : void |
||
43 | } |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param Endpoint $node |
||
48 | */ |
||
49 | public function release(Endpoint $node) : void |
||
54 |