1 | <?php |
||
5 | trait MigrationTrait |
||
6 | { |
||
7 | /** |
||
8 | * Require (once) all migration files for the supplied module. |
||
9 | * |
||
10 | * @param string $module |
||
11 | */ |
||
12 | protected function requireMigrations($module) |
||
22 | |||
23 | /** |
||
24 | * Get migration directory path. |
||
25 | * |
||
26 | * @param string $module |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | protected function getMigrationPath($module) |
||
36 | } |
||
37 |
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: