1 | <?php |
||
12 | class CacheHandler |
||
13 | { |
||
14 | /** @var \Buttress\Concrete\Locator\Site */ |
||
15 | private $site; |
||
16 | |||
17 | /** @var \League\CLImate\CLImate */ |
||
18 | private $cli; |
||
19 | |||
20 | /** @var \Buttress\Concrete\Client\Connection\Connection */ |
||
21 | private $connection; |
||
22 | |||
23 | public function __construct(Connection $connection, CLImate $cli, Site $site) |
||
29 | |||
30 | /** |
||
31 | * Handle the Clear command |
||
32 | * @param \Buttress\Concrete\CommandBus\Command\Cache\Clear $clear |
||
33 | */ |
||
34 | public function handleClear(Clear $clear) |
||
43 | |||
44 | /** |
||
45 | * Clear cache for a ModernConnection |
||
46 | * @param \Buttress\Concrete\Client\Connection\ModernConnection $connection |
||
47 | */ |
||
48 | private function clearModern(ModernConnection $connection) |
||
60 | |||
61 | /** |
||
62 | * Clear cache for a LegacyConnection |
||
63 | * @param \Buttress\Concrete\CommandBus\Handler\LegacyConnection $connection |
||
64 | */ |
||
65 | private function clearLegacy(LegacyConnection $connection) |
||
77 | |||
78 | private function confirm($site) |
||
87 | |||
88 | private function notify($site) |
||
94 | |||
95 | } |
||
96 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.