TwitterBootstrap3Template   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 17
ccs 4
cts 8
cp 0.5
rs 10
c 0
b 0
f 0

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 8
    public function __construct()
10
    {
11 8
        parent::__construct();
12
13 8
        $this->setOptions(['active_suffix' => '<span class="sr-only">current page</span>']);
14 8
    }
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