Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | final public function __construct(Cluster $clustering = null, Remapping $remapping = null) |
||
37 | { |
||
38 | $serv = $this->namedServer(static::class); |
||
39 | |||
40 | if ($remapping && $remapping->configured($serv)) { |
||
41 | $this->invoker = $remapping->dispatcher()->handler(); |
||
42 | } elseif ($clustering) { |
||
43 | $clustering->joining($serv); |
||
44 | $this->invoker = Client::layers()->handler(); |
||
45 | } else { |
||
46 | throw new ClientInitializingException; |
||
47 | } |
||
81 |