1 | <?php |
||
14 | class Metadata |
||
15 | { |
||
16 | |||
17 | 1 | public static function fromList(array $values) |
|
27 | |||
28 | 1 | public static function fromValue(\stdClass $value) |
|
32 | |||
33 | /** |
||
34 | * @var \stdClass |
||
35 | */ |
||
36 | protected $source; |
||
37 | |||
38 | 1 | public function __construct(\stdClass $source) |
|
42 | |||
43 | /** |
||
44 | * @return \stdClass |
||
45 | */ |
||
46 | public function getRawData() |
||
50 | |||
51 | /** |
||
52 | * Get the metadata id |
||
53 | * |
||
54 | * @return integer |
||
55 | */ |
||
56 | 1 | public function getId() |
|
60 | |||
61 | /** |
||
62 | * Get the related databox meta field id |
||
63 | * |
||
64 | * @return integer |
||
65 | */ |
||
66 | 1 | public function getMetaStructureId() |
|
70 | |||
71 | /** |
||
72 | * Get the meta name |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | 1 | public function getName() |
|
80 | |||
81 | /** |
||
82 | * Get the meta value |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | 1 | public function getValue() |
|
90 | |||
91 | /** |
||
92 | * @return string[] |
||
93 | */ |
||
94 | public function getLabels() |
||
98 | } |
||
99 |