TwitterBootstrap3View   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
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\TwitterBootstrap3Template;
15
16
/**
17
 * TwitterBootstrap3View.
18
 *
19
 * View that can be used with the pagination module
20
 * from the Twitter Bootstrap3 CSS Toolkit
21
 * http://getbootstrap.com/
22
 *
23
 */
24
class TwitterBootstrap3View extends TwitterBootstrapView
25
{
26 10
    protected function createDefaultTemplate()
27
    {
28 10
        return new TwitterBootstrap3Template();
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getName()
35
    {
36
        return 'twitter_bootstrap3';
37
    }
38
}
39