| 1 | <?php |
||
| 18 | * @method \Joomla\StatsServer\CliApplication getApplication() Get the application object. |
||
| 19 | * @property-read \Joomla\StatsServer\CliApplication $app Application object |
||
| 20 | */ |
||
| 21 | class ClearCommand extends AbstractController implements CommandInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * The cache item pool. |
||
| 25 | * |
||
| 26 | * @var CacheItemPoolInterface |
||
| 27 | */ |
||
| 28 | private $cache; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor. |
||
| 32 | * |
||
| 33 | * @param CacheItemPoolInterface $cache The cache item pool |
||
| 34 | */ |
||
| 35 | public function __construct(CacheItemPoolInterface $cache) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Execute the controller. |
||
| 42 | * |
||
| 43 | * @return boolean |
||
| 44 | */ |
||
| 45 | public function execute() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the command's description |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getDescription() : string |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the command's title |
||
| 68 | * |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | public function getTitle() : string |
||
| 75 | } |
||
| 76 |