1 | <?php |
||
15 | final class Client |
||
16 | { |
||
17 | /** |
||
18 | * |
||
19 | */ |
||
20 | public CONST AUTH_NONE = 0; |
||
21 | /** |
||
22 | * |
||
23 | */ |
||
24 | public CONST AUTH_PLAIN = 1; |
||
25 | /** |
||
26 | * |
||
27 | */ |
||
28 | public CONST AUTH_AUTO = 3; |
||
29 | /** |
||
30 | * @var ConnectionInterface |
||
31 | */ |
||
32 | private $connection; |
||
33 | /** |
||
34 | * @var NegotiationInterface[] |
||
35 | */ |
||
36 | private $negotiators = []; |
||
37 | /** |
||
38 | * @var TagFactoryInterface |
||
39 | */ |
||
40 | private $tagFactory; |
||
41 | |||
42 | /** |
||
43 | * Client constructor. |
||
44 | * @param ConnectionInterface $connection |
||
45 | * @param TagFactoryInterface $tagFactory |
||
46 | * @param iterable $negotiators |
||
47 | */ |
||
48 | public function __construct( |
||
69 | |||
70 | /** |
||
71 | * @param NegotiationInterface $negotiation |
||
72 | */ |
||
73 | private function addNegotiator(NegotiationInterface $negotiation) |
||
77 | |||
78 | /** |
||
79 | * @param RequestInterface $request |
||
80 | * @return AggregateResponse |
||
81 | */ |
||
82 | public function emit(RequestInterface $request): AggregateResponse |
||
115 | |||
116 | /** |
||
117 | * @return Tag |
||
118 | */ |
||
119 | public function newTag(): Tag |
||
123 | |||
124 | |||
125 | } |