1 | <?php |
||
21 | class Property extends AbstractPropertyData implements PropertyInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var PropertyDefinitionInterface |
||
25 | */ |
||
26 | protected $propertyDefinition; |
||
27 | |||
28 | /** |
||
29 | * Initialize the property with its definition and values |
||
30 | * |
||
31 | * @param PropertyDefinitionInterface $propertyDefinition |
||
32 | * @param mixed[] $values |
||
33 | */ |
||
34 | public function __construct(PropertyDefinitionInterface $propertyDefinition, array $values) |
||
43 | |||
44 | /** |
||
45 | * Returns if the property is a multi-value property. |
||
46 | * |
||
47 | * @return boolean <code>true</code> if the property is multi-value property, <code>false</code> if the property is |
||
48 | * single-value property, |
||
49 | */ |
||
50 | public function isMultiValued() |
||
54 | |||
55 | /** |
||
56 | * Returns the property data type. |
||
57 | * |
||
58 | * @return PropertyType the data type of the property |
||
59 | */ |
||
60 | public function getType() |
||
64 | |||
65 | /** |
||
66 | * Returns the property definition. |
||
67 | * |
||
68 | * @return PropertyDefinitionInterface the property definition |
||
69 | */ |
||
70 | public function getDefinition() |
||
74 | } |
||
75 |