Completed
Push — master ( 8d8bfa...591466 )
by WEBEWEB
14:10
created

ItalicTypographyTwigExtension::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the adminbsb-material-design-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\AdminBSBBundle\Twig\Extension\Typography;
13
14
use Twig_SimpleFunction;
15
use WBW\Bundle\BootstrapBundle\Twig\Extension\Typography\ItalicTypographyTwigExtension as BaseTypographyTwigExtension;
16
17
/**
18
 * Italic typography Twig extension.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Bundle\AdminBSBBundle\Twig\Extension\Typography
22
 */
23
class ItalicTypographyTwigExtension extends BaseTypographyTwigExtension {
24
25
    /**
26
     * Service name.
27
     *
28
     * @var string
29
     */
30
    const SERVICE_NAME = "webeweb.bundle.bootstrapbundle.twig.extension.typography.italic";
31
32
    /**
33
     * Constructor.
34
     */
35
    public function __construct() {
36
        parent::__construct();
37
    }
38
39
    /**
40
     * Get the Twig functions.
41
     *
42
     * @return array Returns the Twig functions.
43
     */
44
    public function getFunctions() {
45
        return [
46
            new Twig_SimpleFunction("adminBSBItalic", [$this, "bootstrapItalicFunction"], ["is_safe" => ["html"]]),
47
        ];
48
    }
49
50
}
51