1 | <?php |
||
23 | abstract class Finder implements MigrationFinder |
||
24 | { |
||
25 | 14 | protected static function requireOnce(string $path) : void |
|
29 | |||
30 | /** |
||
31 | * @throws InvalidDirectory |
||
32 | */ |
||
33 | 41 | protected function getRealPath(string $directory) : string |
|
43 | |||
44 | /** |
||
45 | * @param string[] $files |
||
46 | * |
||
47 | * @return string[] |
||
48 | * |
||
49 | * @throws NameIsReserved |
||
50 | */ |
||
51 | 37 | protected function loadMigrations(array $files, ?string $namespace) : array |
|
73 | |||
74 | /** |
||
75 | * Look up all declared classes and find those classes contained |
||
76 | * in the given `$files` array. |
||
77 | * |
||
78 | * @param string[] $files The set of files that were `required` |
||
79 | * @param string|null $namespace If not null only classes in this namespace will be returned |
||
80 | * |
||
81 | * @return ReflectionClass<object>[] the classes in `$files` |
||
|
|||
82 | */ |
||
83 | 37 | protected function loadMigrationClasses(array $files, ?string $namespace = null) : array |
|
102 | |||
103 | /** |
||
104 | * @param ReflectionClass<object> $reflectionClass |
||
105 | */ |
||
106 | 11 | private function isReflectionClassInNamespace(ReflectionClass $reflectionClass, string $namespace) : bool |
|
110 | } |
||
111 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.