1 | <?php |
||
12 | abstract class AbstractCliHandler extends AbstractHandler |
||
13 | { |
||
14 | /** |
||
15 | * Constructor for the class. |
||
16 | * @param array $options An array of options for the plugin. |
||
17 | */ |
||
18 | 8 | public function __construct($options) |
|
26 | |||
27 | /** |
||
28 | * Determines whether the current handler is appropriate for the given |
||
29 | * path components. |
||
30 | * @param array $components The path components as an array. |
||
31 | * @return boolean Returns true if the handler is appropriate and false |
||
32 | * otherwise. |
||
33 | */ |
||
34 | abstract public function isAppropriate($components); |
||
35 | |||
36 | /** |
||
37 | * Returns whether a handler should function in a CLI environment. |
||
38 | * @return bool Returns true if the handler should function in a CLI |
||
39 | * environment and false otherwise. |
||
40 | */ |
||
41 | 5 | public function isCliHandler() |
|
45 | } |
||
46 |