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 | public function __construct($keyword = null, $arguments = null) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getExpectedResponseCodes() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function execute() |
||
56 | |||
57 | /** |
||
58 | * Called when the list is received from the server. |
||
59 | * |
||
60 | * @param MultiLineResponse $response |
||
61 | */ |
||
62 | public function onListFollows(MultiLineResponse $response) |
||
78 | |||
79 | public function onInvalidKeyword(Response $response) |
||
83 | |||
84 | public function onError(Response $response) |
||
88 | } |
||
89 |