Completed
Push — 146-change-the-paginator-bundl... ( a2c23a...f93d38 )
by
unknown
64:22
created

TwitterBootstrap3Template   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A container() 0 7 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 SumoCoders\FrameworkCoreBundle\Twig;
13
14
use Pagerfanta\View\Template\TwitterBootstrapTemplate;
15
16
/**
17
 * TwitterBootstrap3Template
18
 */
19
class TwitterBootstrap3Template extends TwitterBootstrapTemplate
20
{
21
    public function __construct()
22
    {
23
        parent::__construct();
24
25
        $this->setOptions(array('active_suffix' => '<span class="sr-only">current page</span>'));
26
    }
27
28
    public function container()
29
    {
30
        return sprintf(
31
            '<nav aria-label="Page navigation"><ul class="%s">%%pages%%</ul></nav>',
32
            $this->option('css_container_class')
33
        );
34
    }
35
}
36