1 | <?php |
||
8 | class ListCommand extends Command |
||
9 | { |
||
10 | const KEYWORD_ACTIVE = 'ACTIVE'; |
||
11 | const KEYWORD_ACTIVE_TIMES = 'ACTIVE.TIMES'; |
||
12 | const KEYWORD_DISTRIB_PATS = 'DISTRIB.PATS'; |
||
13 | const KEYWORD_HEADERS = 'HEADERS'; |
||
14 | const KEYWORD_NEWSGROUPS = 'NEWSGROUPS'; |
||
15 | const KEYWORD_OVERVIEW_FMT = 'OVERVIEW.FMT'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $keyword; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $arguments; |
||
26 | |||
27 | /** |
||
28 | * @param string $keyword |
||
29 | * @param string $arguments |
||
30 | */ |
||
31 | public function __construct($keyword = null, $arguments = null) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function getExpectedResponseCodes() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function execute() |
||
55 | |||
56 | /** |
||
57 | * Called when the list is received from the server |
||
58 | * |
||
59 | * @param MultiLineResponse $response |
||
60 | */ |
||
61 | public function onListFollows(MultiLineResponse $response) |
||
77 | |||
78 | public function onInvalidKeyword(Response $response) |
||
82 | |||
83 | public function onError(Response $response) |
||
87 | } |
||
88 |