| 1 | <?php  | 
            ||
| 17 | *  | 
            ||
| 18 | * @method \Joomla\StatsServer\CliApplication getApplication() Get the application object.  | 
            ||
| 19 | * @property-read \Joomla\StatsServer\CliApplication $app Application object  | 
            ||
| 20 | *  | 
            ||
| 21 | * @since 1.0  | 
            ||
| 22 | */  | 
            ||
| 23 | class ClearCommand extends AbstractController implements CommandInterface  | 
            ||
| 24 | { | 
            ||
| 25 | /**  | 
            ||
| 26 | * The cache item pool.  | 
            ||
| 27 | *  | 
            ||
| 28 | * @var CacheItemPoolInterface  | 
            ||
| 29 | * @since 1.0  | 
            ||
| 30 | */  | 
            ||
| 31 | private $cache;  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Constructor.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @param CacheItemPoolInterface $cache The cache item pool  | 
            ||
| 37 | *  | 
            ||
| 38 | * @since 1.0  | 
            ||
| 39 | */  | 
            ||
| 40 | public function __construct(CacheItemPoolInterface $cache)  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * Execute the controller.  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return boolean  | 
            ||
| 49 | *  | 
            ||
| 50 | * @since 1.0  | 
            ||
| 51 | */  | 
            ||
| 52 | public function execute()  | 
            ||
| 62 | |||
| 63 | /**  | 
            ||
| 64 | * Get the command's description  | 
            ||
| 65 | *  | 
            ||
| 66 | * @return string  | 
            ||
| 67 | *  | 
            ||
| 68 | * @since 1.0  | 
            ||
| 69 | */  | 
            ||
| 70 | public function getDescription() : string  | 
            ||
| 74 | |||
| 75 | /**  | 
            ||
| 76 | * Get the command's title  | 
            ||
| 77 | *  | 
            ||
| 78 | * @return string  | 
            ||
| 79 | *  | 
            ||
| 80 | * @since 1.0  | 
            ||
| 81 | */  | 
            ||
| 87 |