| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class AbstractFileCheck extends Check |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Finder |
||
| 16 | */ |
||
| 17 | protected $finder; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Get the file finder component |
||
| 21 | * |
||
| 22 | * @return Finder |
||
| 23 | */ |
||
| 24 | public function getFinder() |
||
| 25 | { |
||
| 26 | if (!$this->finder) { |
||
| 27 | $this->finder = new Finder(); |
||
| 28 | } |
||
| 29 | return $this->finder; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Set the finder component to use |
||
| 34 | * |
||
| 35 | * @param Finder $finder |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function setFinder(Finder $finder) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |