1 | <?php |
||
17 | class ValueWithBootstrap extends Object |
||
18 | { |
||
19 | /** |
||
20 | * @var string|\Closure the PHP code represented by this object. |
||
21 | * Since 1.1 it can also be a Closure serializable by VarDumper. |
||
22 | */ |
||
23 | public $bootstrap; |
||
24 | |||
25 | /** |
||
26 | * @var mixed the value represented by this object. |
||
27 | */ |
||
28 | public $value; |
||
29 | |||
30 | /** |
||
31 | * Creates a new object. |
||
32 | * @param mixed $value the value represented by this object. |
||
33 | * @param string|\Closure $bootstrap the PHP code represented by this object. |
||
34 | * Since 1.1 it can also be a Closure serializable by VarDumper. |
||
35 | * @param array $config name-value pairs that will be used to initialize the object properties. |
||
36 | */ |
||
37 | 15 | public function __construct($value, $bootstrap, $config = []) |
|
43 | } |
||
44 |