@@ -189,6 +189,9 @@ |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | |
192 | + /** |
|
193 | + * @param string $value |
|
194 | + */ |
|
192 | 195 | public function setLanguage($value) { |
193 | 196 | if (!empty($value)) |
194 | 197 | $this->meta['language'] = strtolower((string)$value); |
@@ -162,6 +162,11 @@ discard block |
||
162 | 162 | /* |
163 | 163 | * Public API, convert a UUID from one format to another |
164 | 164 | */ |
165 | + |
|
166 | + /** |
|
167 | + * @param integer $from |
|
168 | + * @param integer $to |
|
169 | + */ |
|
165 | 170 | static public function convert($uuid, $from, $to) { |
166 | 171 | $conv = self::$m_convert[$from][$to]; |
167 | 172 | if (!isset($conv)) |
@@ -189,6 +194,11 @@ discard block |
||
189 | 194 | /* |
190 | 195 | * Generate UUID version 3 and 5 (name based) |
191 | 196 | */ |
197 | + |
|
198 | + /** |
|
199 | + * @param string $hash |
|
200 | + * @param integer $version |
|
201 | + */ |
|
192 | 202 | static private function generateName($ns, $node, $hash, $version) { |
193 | 203 | $ns_fmt = self::detectFormat($ns); |
194 | 204 | $field = self::convert($ns, $ns_fmt, self::FMT_FIELD); |