TwitterBootstrap3Template   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A container() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the Pagerfanta package.
5
 *
6
 * (c) Pablo Díez <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Pagerfanta\View\Template;
13
14
/**
15
 * TwitterBootstrap3Template
16
 */
17
class TwitterBootstrap3Template extends TwitterBootstrapTemplate
18
{
19 20
    public function __construct()
20
    {
21 20
        parent::__construct();
22
23 20
        $this->setOptions(array('active_suffix' => '<span class="sr-only">(current)</span>'));
24 20
    }
25
26 20
    public function container()
27
    {
28 20
        return sprintf('<ul class="%s">%%pages%%</ul>',
29 20
            $this->option('css_container_class')
30
        );
31
    }
32
}
33