1 | <?php |
||
11 | class UnknownValue extends DataValueObject { |
||
12 | |||
13 | /** |
||
14 | * @var mixed |
||
15 | */ |
||
16 | private $value; |
||
17 | |||
18 | /** |
||
19 | * @param mixed $value |
||
20 | */ |
||
21 | 16 | public function __construct( $value ) { |
|
24 | |||
25 | /** |
||
26 | * @see Serializable::serialize |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | 16 | public function serialize() { |
|
33 | |||
34 | /** |
||
35 | * @see Serializable::unserialize |
||
36 | * |
||
37 | * @param string $value |
||
38 | */ |
||
39 | 8 | public function unserialize( $value ) { |
|
42 | |||
43 | /** |
||
44 | * @see DataValue::getType |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 16 | public static function getType() { |
|
51 | |||
52 | /** |
||
53 | * Returns the value. |
||
54 | * @see DataValue::getValue |
||
55 | * |
||
56 | * @return mixed |
||
57 | */ |
||
58 | 32 | public function getValue() { |
|
61 | |||
62 | /** |
||
63 | * @param mixed $target |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | 16 | public function equals( $target ) { |
|
75 | |||
76 | /** |
||
77 | * Constructs a new instance from the provided data. Required for {@see DataValueDeserializer}. |
||
78 | * This is expected to round-trip with {@see getArrayValue}. |
||
79 | * |
||
80 | * @deprecated since 1.1. Static DataValue::newFromArray constructors like this are |
||
81 | * underspecified (not in the DataValue interface), and misleadingly named (should be named |
||
82 | * newFromArrayValue). Instead, use DataValue builder callbacks in {@see DataValueDeserializer}. |
||
83 | * |
||
84 | * @param mixed $data |
||
85 | * |
||
86 | * @return self |
||
87 | */ |
||
88 | public static function newFromArray( $data ) { |
||
91 | |||
92 | } |
||
93 |