Completed
Pull Request — master (#226)
by Romaric
08:06
created

TwitterBootstrap4View   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createDefaultTemplate() 0 4 1
A getName() 0 4 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;
13
14
use Pagerfanta\View\Template\TwitterBootstrap4Template;
15
16
/**
17
 * TwitterBootstrap4View.
18
 *
19
 * View that can be used with the pagination module
20
 * from the Twitter Bootstrap4 CSS Toolkit
21
 * http://getbootstrap.com/
22
 *
23
 */
24
class TwitterBootstrap4View extends TwitterBootstrapView
25
{
26 10
    protected function createDefaultTemplate()
27
    {
28 10
        return new TwitterBootstrap4Template();
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getName()
35
    {
36
        return 'twitter_bootstrap4';
37
    }
38
}
39