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