protected function parseParameters($matches)
{
parse_str($matches[1], $params);
foreach ($params as $key => $val) {
if (!$val) {
continue;
}
switch ($key) {
case 'weight':
$this->weight = (int) $val;
break;
case 'alias':
$this->alias = $val;
break;
}
}
return '';
}