Completed
Push — master ( b569b1...d88325 )
by Jean-Christophe
03:46
created

HtmlPaginationMenu   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A compile() 0 6 1
1
<?php
2
3
namespace Ajax\semantic\html\collections\menus;
4
5
use Ajax\semantic\html\collections\menus\HtmlMenu;
6
use Ajax\JsUtils;
7
use Phalcon\Mvc\View;
8
use Ajax\semantic\html\elements\HtmlIcon;
9
10
class HtmlPaginationMenu extends HtmlMenu{
11
12
	public function __construct( $identifier, $items=array() ){
13
		parent::__construct( $identifier,$items);
14
	}
15
	/**
16
	 * {@inheritDoc}
17
	 * @see \Ajax\common\html\BaseHtml::compile()
18
	 */
19
	public function compile(JsUtils $js=NULL,View $view=NULL){
20
		$this->insertItem(new HtmlIcon("", "left chevron"));
21
		$this->addItem(new HtmlIcon("", "right chevron"));
22
		$this->asPagination();
23
		return parent::compile($js,$view);
24
	}
25
}