1 | <?php |
||
9 | class Schema |
||
10 | { |
||
11 | protected $structure = []; |
||
12 | |||
13 | public function __construct(string $schema) |
||
17 | |||
18 | /** |
||
19 | * @return Collection |
||
20 | */ |
||
21 | public function getStructure(): Collection |
||
25 | |||
26 | private function getSchemaFieldsFromSchemaString(string $schema): array |
||
30 | |||
31 | private function parseSchemaFields(array $schemaFields): void |
||
37 | |||
38 | private function parseSchemaField(string $schemaField): void |
||
44 | |||
45 | private function parseMigration(string $migrationString): array |
||
56 | |||
57 | private function setSchemaField(array $migrationOptions, array $crudOptions): void |
||
63 | |||
64 | protected function getSchemaFieldType(array $migrationOptions, array $crudOptions): ?SchemaFieldTypeInterface |
||
74 | |||
75 | private function loadMigrationFieldType(SchemaFieldTypeInterface $fieldType): SchemaFieldTypeInterface |
||
79 | |||
80 | public function getFieldNames() |
||
84 | |||
85 | public function getMigrationFields() |
||
89 | |||
90 | public function getCrudFields() |
||
94 | |||
95 | public function getCrudColumns() |
||
99 | |||
100 | public function getValidationRules() |
||
104 | } |
||
105 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.