1 | <?php |
||
15 | class CacheHandler |
||
16 | { |
||
17 | /** @var \Buttress\Concrete\Locator\Site */ |
||
18 | private $site; |
||
19 | |||
20 | /** @var \League\CLImate\CLImate */ |
||
21 | private $cli; |
||
22 | |||
23 | /** @var \Buttress\Concrete\Client\Connection\Connection */ |
||
24 | private $connection; |
||
25 | |||
26 | public function __construct(Connection $connection, CLImate $cli, Site $site) |
||
32 | |||
33 | /** |
||
34 | * Handle the Clear command |
||
35 | * @param \Buttress\Concrete\CommandBus\Command\Cache\Clear $clear |
||
36 | */ |
||
37 | public function handleClear(Clear $clear) |
||
45 | |||
46 | /** |
||
47 | * Clear cache for a ModernConnection |
||
48 | * @param \Buttress\Concrete\Client\Connection\ModernConnection $connection |
||
49 | */ |
||
50 | private function clearModern(ModernConnection $connection) |
||
63 | |||
64 | /** |
||
65 | * Clear cache for a LegacyConnection |
||
66 | * @param LegacyConnection $connection |
||
67 | */ |
||
68 | private function clearLegacy(LegacyConnection $connection) |
||
76 | |||
77 | private function notify($site) |
||
83 | |||
84 | } |
||
85 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.