TwitterBootstrap3Template::container()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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