1 | <?php |
||
9 | class ListCommand extends Command |
||
10 | { |
||
11 | const KEYWORD_ACTIVE = 'ACTIVE'; |
||
12 | const KEYWORD_ACTIVE_TIMES = 'ACTIVE.TIMES'; |
||
13 | const KEYWORD_DISTRIB_PATS = 'DISTRIB.PATS'; |
||
14 | const KEYWORD_HEADERS = 'HEADERS'; |
||
15 | const KEYWORD_NEWSGROUPS = 'NEWSGROUPS'; |
||
16 | const KEYWORD_OVERVIEW_FMT = 'OVERVIEW.FMT'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $keyword; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $arguments; |
||
27 | |||
28 | /** |
||
29 | * @param string $keyword |
||
30 | * @param string $arguments |
||
31 | */ |
||
32 | 9 | public function __construct($keyword = null, $arguments = null) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 2 | public function getExpectedResponseCodes() |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 1 | public function execute() |
|
58 | |||
59 | /** |
||
60 | * Called when the list is received from the server. |
||
61 | * |
||
62 | * @param MultiLineResponse $response |
||
63 | */ |
||
64 | 1 | public function onListFollows(MultiLineResponse $response) |
|
80 | |||
81 | 1 | public function onInvalidKeyword(Response $response) |
|
85 | |||
86 | 1 | public function onError(Response $response) |
|
90 | } |
||
91 |