| 1 | <?php |
||
| 5 | trait MigrationLoaderTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Include all migrations files from the specified component. |
||
| 9 | * |
||
| 10 | * @param string $component |
||
| 11 | */ |
||
| 12 | protected function loadMigrationFiles($component) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get migration generator path. |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | protected function getMigrationGeneratorPath() |
||
| 32 | } |
||
| 33 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: