| 1 | <?php |
||
| 17 | final class RecursiveRegexFinder extends Finder |
||
| 18 | { |
||
| 19 | /** @var string */ |
||
| 20 | private $pattern; |
||
| 21 | |||
| 22 | 39 | public function __construct(?string $pattern = null) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return string[] |
||
| 33 | */ |
||
| 34 | 14 | public function findMigrations(string $directory, ?string $namespace = null) : array |
|
| 43 | |||
| 44 | 12 | private function createIterator(string $dir) : RegexIterator |
|
| 55 | |||
| 56 | 12 | private function getPattern() : string |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string[] |
||
| 63 | */ |
||
| 64 | 12 | private function getMatches(RegexIterator $iteratorFilesMatch) : array |
|
| 73 | } |
||
| 74 |