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

TwitterBootstrap4View::createDefaultTemplate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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