FoundationPresenter::getActiveLink()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php namespace Humweb\Breadcrumbs;
2
3
class FoundationPresenter extends Presenter {
4
5
	public function getWrapper($items)
6
	{
7
		return '<ul class="breadcrumbs">'.$items.'</ul>';
8
	}
9
10
	public function getLink($item)
11
	{
12
		return '<li><a href="'.$item['url'].'">'.$item['label'].'</a></li>';
13
	}
14
15
	public function getActiveLink($item)
16
	{
17
		return '<li class="current">'.$item['label'].'</li>';
18
	}
19
}
20