| 1 | <?php |
||
| 18 | class ClearCommand extends AbstractController implements CommandInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The cache handler. |
||
| 22 | * |
||
| 23 | * @var Cache |
||
| 24 | * @since 1.0 |
||
| 25 | */ |
||
| 26 | private $cache; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Constructor. |
||
| 30 | * |
||
| 31 | * @param Cache $cache The cache handler |
||
| 32 | * |
||
| 33 | * @since 1.0 |
||
| 34 | */ |
||
| 35 | public function __construct(Cache $cache) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Execute the controller. |
||
| 42 | * |
||
| 43 | * @return boolean |
||
| 44 | * |
||
| 45 | * @since 1.0 |
||
| 46 | */ |
||
| 47 | public function execute() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Get the command's description |
||
| 73 | * |
||
| 74 | * @return string |
||
| 75 | * |
||
| 76 | * @since 1.0 |
||
| 77 | */ |
||
| 78 | public function getDescription() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Get the command's title |
||
| 85 | * |
||
| 86 | * @return string |
||
| 87 | * |
||
| 88 | * @since 1.0 |
||
| 89 | */ |
||
| 90 | public function getTitle() |
||
| 94 | } |
||
| 95 |