| 1 | <?php |
||
| 8 | final class Parameter |
||
| 9 | { |
||
| 10 | private $value; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Creates a parameter. |
||
| 14 | * |
||
| 15 | * @param scalar|array $value The value of the parameter. This should be a scalar or an array of scalar values |
||
| 16 | */ |
||
| 17 | public function __construct($value) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns the value of the parameter. |
||
| 24 | * |
||
| 25 | * @return scalar|array |
||
| 26 | */ |
||
| 27 | public function getValue() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns the value of the parameter. |
||
| 34 | * |
||
| 35 | * @return scalar|array |
||
| 36 | */ |
||
| 37 | public function __invoke() |
||
| 41 | } |
||
| 42 |