/**
* Displays the pager on screen based on templates and options defined.
*
* @link https://github.com/doctrine/doctrine1/blob/master/lib/Doctrine/Pager/Layout.php#L315
* @param array $options
* @return string
*/
public function getRendered(array $options = [])
{
$range = $this->range->getRange();
$result = '';
for ($i = 0, $l = count($range); $i < $l; $i++) {
$options['page_number'] = $range[$i];
$result .= $this->processPage($options);
if ($i < $l - 1) {
$result .= $this->separatorTemplate;
}
}
return $result;
}