1 | <?php |
||
17 | final class Configuration extends BaseConfiguration |
||
18 | { |
||
19 | |||
20 | 14 | public function __construct(Container $container, Connection $connection, OutputWriter $outputWriter = NULL) |
|
25 | |||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 2 | public function getMigrationsToExecute($direction, $to) |
|
38 | |||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getVersion($version) |
||
49 | |||
50 | } |
||
51 |
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: