Carbon_Pagination_Item_First_Page   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 5
Bugs 0 Features 0
Metric Value
c 5
b 0
f 0
dl 0
loc 22
ccs 5
cts 5
cp 1
rs 10
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_direction_html() 0 4 1
A get_direction_page_number() 0 3 1
1
<?php
2
/**
3
 * The Carbon Pagination first page item class.
4
 *
5
 * @uses Carbon_Pagination_Item_Direction_Backward_Page
6
 */
7
class Carbon_Pagination_Item_First_Page extends Carbon_Pagination_Item_Direction_Backward_Page {
8
9
	/**
10
	 * The HTML of the direction item.
11
	 *
12
	 * @return string $html The direction item HTML.
13
	 */
14 1
	public function get_direction_html() {
15 1
		$pagination = $this->get_collection()->get_pagination();
16 1
		return $pagination->get_first_html();
17
	}
18
19
	/**
20
	 * The number of the page to link to.
21
	 *
22
	 * @return int $page The number of the page to link to.
23
	 */
24 1
	public function get_direction_page_number() {
25 1
		return 0;
26
	}
27
28
}