| 1 | <?php |
||
| 12 | class MigrationContainerAware extends Migration |
||
| 13 | { |
||
| 14 | private $container; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param SchemaTable $schemaTable description |
||
| 18 | * @param MigrationFiles $migrationFiles description |
||
| 19 | * @param Manipulation $schemaManipulation description |
||
| 20 | * @param Info $schemaInfo description |
||
| 21 | * @param ContainerInterface $container description |
||
| 22 | */ |
||
| 23 | public function __construct( |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Create an instance of migration class. |
||
| 36 | * |
||
| 37 | * @param $className Name of migration class. |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | protected function createMigrationApiInstance($className) |
||
| 45 | } |
||
| 46 | |||
| 47 |
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: