1 | <?php |
||
8 | class HtmlFileFinder |
||
9 | { |
||
10 | use CanResolveDocumentRoot; |
||
11 | |||
12 | /** |
||
13 | * Path to find HTML files. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $path; |
||
18 | |||
19 | /** |
||
20 | * HtmlFileFinder constructor. |
||
21 | * |
||
22 | * @param mixed $path |
||
23 | * |
||
24 | * @throws LogicException |
||
25 | */ |
||
26 | public function __construct($path) |
||
30 | |||
31 | /** |
||
32 | * Get the HTML files. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | public function getFiles() :array |
||
59 | |||
60 | /** |
||
61 | * Check if the given file is an HTML file. |
||
62 | * |
||
63 | * @param mixed $path |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | protected function isHtmlFile($path) :bool |
||
76 | } |
||
77 |