Carbon_Pagination_Item_Limiter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 8 1
1
<?php
2
/**
3
 * The Carbon Pagination limiter class.
4
 * Responsible for the limiter between page links.
5
 *
6
 * @uses Carbon_Pagination_Item
7
 */
8
class Carbon_Pagination_Item_Limiter extends Carbon_Pagination_Item {
9
10
	/**
11
	 * Render the item.
12
	 *
13
	 * @return string $html The HTML of the item.
14
	 */
15 2
	public function render() {
16 2
		$pagination = $this->get_collection()->get_pagination();
17
18 2
		$html = $pagination->get_limiter_html();
19 2
		$html = apply_filters( 'carbon_pagination_limiter', $html, $this );
20
21 2
		return $html;
22
	}
23
24
}