| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class Manage |
||
| 12 | { |
||
| 13 | use Contains; |
||
| 14 | use Logger; |
||
| 15 | use Makeable; |
||
| 16 | |||
| 17 | protected $source; |
||
| 18 | |||
| 19 | protected $target; |
||
| 20 | |||
| 21 | protected $filename; |
||
| 22 | |||
| 23 | public function source(array $array): self |
||
| 28 | } |
||
| 29 | |||
| 30 | public function target(array $array): self |
||
| 31 | { |
||
| 32 | $this->target = $array; |
||
| 33 | |||
| 34 | return $this; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function filename(string $filename): self |
||
| 38 | { |
||
| 39 | $this->filename = Path::filename($filename); |
||
| 40 | |||
| 41 | return $this; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function find(): ComparatorContract |
||
| 45 | { |
||
| 46 | $this->log('Comparison object definition...'); |
||
| 47 | |||
| 48 | return $this->resolve() |
||
| 49 | ->source($this->source) |
||
| 50 | ->target($this->target); |
||
| 51 | } |
||
| 52 | |||
| 53 | protected function resolve(): ComparatorContract |
||
| 58 | } |
||
| 59 | } |
||
| 60 |