Completed
Push — master ( 9276df...2eb3b6 )
by WEBEWEB
01:27
created

AbstractTwigExtension::getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
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 WBW\Bundle\BootstrapBundle\Twig\Extension;
13
14
use Twig\Environment;
15
use WBW\Bundle\CoreBundle\Twig\Extension\AbstractTwigExtension as BaseTwigExtension;
16
17
/**
18
 * Abstract Twig extension.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\BootstrapBundle\Twig\Extension
22
 * @abstract
23
 */
24
abstract class AbstractTwigExtension extends BaseTwigExtension {
25
26
    /**
27
     * Version.
28
     *
29
     * @var int
30
     */
31
    private $version;
32
33
    /**
34
     * Constructor.
35
     *
36
     * @param Environment $twigEnvironment The Twig environment.
37
     */
38
    public function __construct(Environment $twigEnvironment) {
39
        parent::__construct($twigEnvironment);
40
    }
41
42
    /**
43
     * Get the version.
44
     *
45
     * @return int Returns the version.
46
     */
47
    public function getVersion() {
48
        return $this->version;
49
    }
50
51
    /**
52
     * Set the version.
53
     *
54
     * @param int $version The version.
55
     * @return AbstractTwigExtension Returns this Twig extension.
56
     */
57
    public function setVersion($version) {
58
        $this->version = $version;
59
        return $this;
60
    }
61
}
62