1 | <?php |
||
47 | class Property implements PropertyInterface |
||
48 | { |
||
49 | /** |
||
50 | * Property name |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $name; |
||
55 | /** |
||
56 | * Vocabulary |
||
57 | * |
||
58 | * @var VocabularyInterface |
||
59 | */ |
||
60 | protected $vocabulary; |
||
61 | /** |
||
62 | * Property value |
||
63 | * |
||
64 | * @var string |
||
65 | */ |
||
66 | protected $value; |
||
67 | /** |
||
68 | * Resource ID |
||
69 | * |
||
70 | * @var string|null |
||
71 | */ |
||
72 | protected $resourceId = null; |
||
73 | |||
74 | /** |
||
75 | * Property constructor |
||
76 | * |
||
77 | * @param string $name Property name |
||
78 | * @param VocabularyInterface $vocabulary Property vocabulary |
||
79 | * @param string $value Property value |
||
80 | */ |
||
81 | 5 | public function __construct($name, VocabularyInterface $vocabulary, $value, $resourceId = null) |
|
88 | |||
89 | /** |
||
90 | * Return the property name |
||
91 | * |
||
92 | * @return string Property name |
||
93 | */ |
||
94 | 4 | public function getName() |
|
98 | |||
99 | /** |
||
100 | * Return the property vocabulary |
||
101 | * |
||
102 | * @return VocabularyInterface Property vocabulary |
||
103 | */ |
||
104 | 1 | public function getVocabulary() |
|
108 | |||
109 | /** |
||
110 | * Return the property value |
||
111 | * |
||
112 | * @return string Property value |
||
113 | */ |
||
114 | 1 | public function getValue() |
|
118 | |||
119 | /** |
||
120 | * Return the property resource ID |
||
121 | * |
||
122 | * @return null|string Property resource ID |
||
123 | */ |
||
124 | 1 | public function getResourceId() |
|
128 | } |
||
129 |