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 | /** |
||
69 | * Property constructor |
||
70 | * |
||
71 | * @param string $name Property name |
||
72 | * @param VocabularyInterface $vocabulary Property vocabulary |
||
73 | * @param string $value Property value |
||
74 | */ |
||
75 | 3 | public function __construct($name, VocabularyInterface $vocabulary, $value) |
|
81 | |||
82 | /** |
||
83 | * Return the property name |
||
84 | * |
||
85 | * @return string Property name |
||
86 | */ |
||
87 | 2 | public function getName() |
|
91 | |||
92 | /** |
||
93 | * Return the property vocabulary |
||
94 | * |
||
95 | * @return VocabularyInterface Property vocabulary |
||
96 | */ |
||
97 | 1 | public function getVocabulary() |
|
101 | |||
102 | /** |
||
103 | * Property value |
||
104 | * |
||
105 | * @return string Property value |
||
106 | */ |
||
107 | 1 | public function getValue() |
|
111 | } |
||
112 |