| 1 | <?php |
||
| 15 | class ConfigurationException extends \RuntimeException implements VerboseException |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @{inheritDoc} |
||
| 19 | */ |
||
| 20 | public function __construct($message = "", $code = 0, \Exception $previous = null, array $config = null) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @{inheritDoc} |
||
| 28 | */ |
||
| 29 | public function output(OutputInterface $output) |
||
| 33 | } |
||
| 34 |
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: