| 1 | <?php |
||
| 16 | class DefaultValue extends AbstractConfigurationHandler |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var mixed |
||
| 20 | */ |
||
| 21 | private $defaultValue; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * DefaultValue constructor. |
||
| 25 | * |
||
| 26 | * @param mixed $defaultValue |
||
| 27 | */ |
||
| 28 | 7 | public function __construct($defaultValue) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Return either the actual value (if it's not empty) or the |
||
| 35 | * defined default value. |
||
| 36 | * |
||
| 37 | * @param mixed $value |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | 2 | public function get($value) |
|
| 45 | } |
||
| 46 |