| 1 | <?php |
||
| 5 | class ClassConfigurationReader |
||
| 6 | { |
||
| 7 | |||
| 8 | protected $configurationDir; |
||
| 9 | protected $object; |
||
| 10 | |||
| 11 | public function __construct( |
||
| 12 | $configurationDir = null |
||
| 13 | ) |
||
| 14 | { |
||
| 15 | $this->configurationDir = $configurationDir; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param null $configurationDir |
||
| 20 | */ |
||
| 21 | public function setConfigurationDir($configurationDir) |
||
| 22 | { |
||
| 23 | $this->configurationDir = $configurationDir; |
||
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | public function __set($name, $value) |
||
| 31 | |||
| 32 | public function __call($method, $args) |
||
| 36 | |||
| 37 | |||
| 38 | public function configure(ConfigurableObjectInterface $config) |
||
| 66 | |||
| 67 | } |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: