get_direction_html()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
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
}