1 | <?php |
||
13 | class Field extends ValueObject |
||
14 | { |
||
15 | /** |
||
16 | * Field ID. |
||
17 | * |
||
18 | * @var mixed |
||
19 | */ |
||
20 | public $id; |
||
21 | |||
22 | /** |
||
23 | * Corresponding field definition. |
||
24 | * |
||
25 | * @var mixed |
||
26 | */ |
||
27 | public $fieldDefinitionId; |
||
28 | |||
29 | /** |
||
30 | * Data type name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | public $type; |
||
35 | |||
36 | /** |
||
37 | * Value of the field. |
||
38 | * |
||
39 | * @var \eZ\Publish\SPI\Persistence\Content\FieldValue |
||
40 | */ |
||
41 | public $value; |
||
42 | |||
43 | /** |
||
44 | * Language code of this Field. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | public $languageCode; |
||
49 | |||
50 | /** |
||
51 | * @var int|null Null if not created yet |
||
52 | * |
||
53 | * @todo Normally we would use a create struct here |
||
54 | */ |
||
55 | public $versionNo; |
||
56 | |||
57 | /** |
||
58 | * Clone object properties. |
||
59 | * |
||
60 | * Note: `clone` keyword performs shallow copy of an object. |
||
61 | * For properties being objects this means that a reference |
||
62 | * is copied instead of the actual object. |
||
63 | */ |
||
64 | public function __clone() |
||
68 | } |
||
69 |