1 | <?php |
||
15 | class CacheClearCommand extends Command implements CommandInterface { |
||
16 | const COMMAND_NAME = 'cache:clear'; |
||
17 | const COMMAND_DESCRIPTION = 'Empty the cache folder by removing all files.'; |
||
18 | |||
19 | public function __construct() { |
||
23 | |||
24 | /** |
||
25 | * Configure command |
||
26 | */ |
||
27 | protected function configure() { |
||
31 | |||
32 | /** |
||
33 | * @param InputInterface $input |
||
34 | * @param OutputInterface $output |
||
35 | * @return bool |
||
36 | */ |
||
37 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
43 | |||
44 | /** |
||
45 | * Execute Command |
||
46 | */ |
||
47 | protected function executeCommand() { |
||
53 | |||
54 | /** |
||
55 | * Recursively delete directory content and the directory itself |
||
56 | * @param string $dir |
||
57 | */ |
||
58 | protected function deleteDirectory($dir) { |
||
74 | |||
75 | /** |
||
76 | * @param string $dir |
||
77 | */ |
||
78 | protected function recreateCacheFolder($dir) { |
||
81 | } |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.