1 | <?php |
||
22 | class Client implements ClientInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var ConnectionInterface |
||
26 | */ |
||
27 | private $connection; |
||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * |
||
32 | * @param ConnectionInterface $connection |
||
33 | */ |
||
34 | 23 | public function __construct(ConnectionInterface $connection) |
|
38 | |||
39 | /** |
||
40 | * Get the connection instance. |
||
41 | * |
||
42 | * @return ConnectionInterface |
||
43 | */ |
||
44 | 1 | public function getConnection() |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 4 | public function connect() |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 1 | public function disconnect() |
|
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 6 | public function authenticate($username, $password = null) |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 3 | public function connectAndAuthenticate($username, $password = null) |
|
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | 7 | public function authInfo($type, $value) |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 1 | public function body($article) |
|
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | 1 | public function listGroups($keyword = null, $arguments = null) |
|
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | 1 | public function group($name) |
|
132 | |||
133 | /** |
||
134 | * {@inheritdoc} |
||
135 | */ |
||
136 | 1 | public function help() |
|
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | 1 | public function overviewFormat() |
|
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | 2 | public function post($groups, $subject, $body, $from, $headers = null) |
|
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | 3 | public function postArticle($groups, $subject, $body, $from, $headers = null) |
|
174 | |||
175 | /** |
||
176 | * {@inheritdoc} |
||
177 | */ |
||
178 | 1 | public function quit() |
|
182 | |||
183 | /** |
||
184 | * {@inheritdoc} |
||
185 | */ |
||
186 | 1 | public function xfeature($feature) |
|
190 | |||
191 | /** |
||
192 | * {@inheritdoc} |
||
193 | */ |
||
194 | 1 | public function xover($from, $to, array $format) |
|
198 | |||
199 | /** |
||
200 | * {@inheritdoc} |
||
201 | */ |
||
202 | 1 | public function xzver($from, $to, array $format) |
|
206 | |||
207 | /** |
||
208 | * {@inheritdoc} |
||
209 | */ |
||
210 | 18 | public function sendCommand(CommandInterface $command) |
|
214 | |||
215 | /** |
||
216 | * {@inheritdoc} |
||
217 | */ |
||
218 | 3 | public function sendArticle(CommandInterface $command) |
|
222 | } |
||
223 |