| 1 | <?php |
||
| 17 | final class Configuration extends BaseConfiguration |
||
| 18 | { |
||
| 19 | |||
| 20 | 9 | public function __construct(Container $container, Connection $connection, OutputWriter $outputWriter = NULL) |
|
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $direction |
||
| 29 | * @param string $to |
||
| 30 | * @return Version[] |
||
| 31 | */ |
||
| 32 | 2 | public function getMigrationsToExecute($direction, $to) |
|
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $version |
||
| 44 | * @return Version|string |
||
| 45 | */ |
||
| 46 | public function getVersion($version) |
||
| 52 | |||
| 53 | } |
||
| 54 |
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: