Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ChainedMethod implements ExposeMethod |
||
12 | { |
||
13 | /** |
||
14 | * @var ExposeMethod[] |
||
15 | */ |
||
16 | protected $failovers = []; |
||
17 | |||
18 | /** |
||
19 | * @param ExposeMethod[] ...$failovers List of failovers |
||
20 | */ |
||
21 | public function __construct(...$failovers) |
||
22 | { |
||
23 | $this->failovers = $failovers; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Exposes the directory with the given paths |
||
28 | * |
||
29 | * @param string $source Full filesystem path to file source |
||
30 | * @param string $target Full filesystem path to the target directory |
||
31 | * @throws RuntimeException If could not be exposed |
||
32 | */ |
||
33 | public function exposeDirectory($source, $target) |
||
45 | } |
||
46 | } |
||
48 |