public function build($casing = null, $last_not_link = true, $separator = null, $properties = array(), $ul_class = null, $different_links = false)
{
// always create link on build stage!
$this->link($last_not_link, $different_links);
// handle defaults
$this->separator = is_null($separator) ? $this->config->value('separator') : $separator;
$this->casing = is_null($casing) ? $this->config->value('casing') : $casing;
$this->ulClass = is_null($ul_class) ? '' : ' class="' . $ul_class . '"';
$result = "<ul{$this->ulClass}>";
foreach ($this->segments as $key => $segment) {
$result .= $this->appendElement($key, $segment, $properties);
}
return $result . '</ul>';
}