public function build($casing = null, $last_not_link = true, $separator = null, $properties = array(), $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;
$result = '';
foreach ($this->segments as $key => $segment) {
$result .= $this->appendElement($key, $segment, $properties);
}
return $result;
}