1 | <?php |
||
7 | class HtmlFileFinder |
||
8 | { |
||
9 | /** |
||
10 | * Path to find HTML files. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $path; |
||
15 | |||
16 | /** |
||
17 | * HtmlFileFinder constructor. |
||
18 | * |
||
19 | * @param mixed $path |
||
20 | */ |
||
21 | public function __construct($path) |
||
31 | |||
32 | /** |
||
33 | * Get the HTML files. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getFiles() :array |
||
58 | |||
59 | /** |
||
60 | * Check if the given file is an HTML file. |
||
61 | * |
||
62 | * @param mixed $path |
||
63 | * @return bool |
||
64 | */ |
||
65 | protected function isHtmlFile($path) :bool |
||
74 | } |
||
75 |