Completed
Push — master ( f7234f...d97733 )
by
unknown
05:19
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
namespace SumoCoders\FrameworkCoreBundle\Twig;
4
5
use Pagerfanta\View\Template\TwitterBootstrapTemplate;
6
7
class TwitterBootstrap3Template extends TwitterBootstrapTemplate
8
{
9
    public function __construct()
10
    {
11
        parent::__construct();
12
13
        $this->setOptions(['active_suffix' => '<span class="sr-only">current page</span>']);
14
    }
15
16
    public function container(): string
17
    {
18
        return sprintf(
19
            '<nav aria-label="Page navigation"><ul class="%s">%%pages%%</ul></nav>',
20
            $this->option('css_container_class')
21
        );
22
    }
23
}
24