1 | <?php declare(strict_types=1); |
||
23 | class WrappedObject |
||
24 | { |
||
25 | /** |
||
26 | * @var ObjectValue |
||
27 | */ |
||
28 | private $value; |
||
29 | /** |
||
30 | * @var object |
||
31 | */ |
||
32 | private $object; |
||
33 | /** |
||
34 | * @var null|ObjectSpecInterface |
||
35 | */ |
||
36 | private $spec; |
||
37 | |||
38 | /** |
||
39 | * @param ObjectValue $value |
||
40 | * @param $object |
||
41 | * @param null|ObjectSpecInterface $spec |
||
42 | */ |
||
43 | public function __construct(ObjectValue $value, $object, ?ObjectSpecInterface $spec = null) |
||
49 | |||
50 | /** |
||
51 | * @return ObjectValue |
||
52 | */ |
||
53 | public function getValue(): ObjectValue |
||
57 | |||
58 | /** |
||
59 | * @return object |
||
60 | */ |
||
61 | public function getObject() |
||
65 | |||
66 | /** |
||
67 | * @return null|ObjectSpecInterface |
||
68 | */ |
||
69 | public function getSpec(): ?ObjectSpecInterface |
||
73 | } |
||
74 |