Total Complexity | 7 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class Manage |
||
13 | { |
||
14 | use Contains; |
||
15 | use Keyable; |
||
16 | use Logger; |
||
17 | use Makeable; |
||
18 | |||
19 | protected $source; |
||
20 | |||
21 | protected $target; |
||
22 | |||
23 | protected $filename; |
||
24 | |||
25 | protected $full = false; |
||
26 | |||
27 | protected $key; |
||
28 | |||
29 | public function source(array $array): self |
||
30 | { |
||
31 | $this->source = $array; |
||
32 | |||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | public function target(array $array): self |
||
37 | { |
||
38 | $this->target = $array; |
||
39 | |||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | public function filename(string $filename): self |
||
44 | { |
||
45 | $this->filename = Path::filename($filename); |
||
46 | $this->key = $this->key($filename); |
||
47 | |||
48 | return $this; |
||
49 | } |
||
50 | |||
51 | public function full(bool $full): self |
||
56 | } |
||
57 | |||
58 | public function find(): ComparatorContract |
||
59 | { |
||
60 | $this->log('Comparison object definition...'); |
||
61 | |||
62 | return $this->resolve() |
||
63 | ->full($this->full) |
||
64 | ->key($this->key) |
||
65 | ->source($this->source) |
||
66 | ->target($this->target); |
||
67 | } |
||
68 | |||
69 | protected function resolve(): ComparatorContract |
||
74 | } |
||
75 | } |
||
76 |