GlyphiconComponent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 25
ccs 0
cts 2
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTemplatePath() 0 3 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * Alxarafe. Development of PHP applications in a flash!
4
 * Copyright (C) 2018-2020 Alxarafe <[email protected]>
5
 */
6
7
namespace Alxarafe\Core\Renders\Twig\Components;
8
9
/**
10
 * Class GlyphiconComponent
11
 *
12
 * @package Alxarafe\Core\Renders\Twig\Components
13
 */
14
class GlyphiconComponent extends AbstractComponent
15
{
16
    /**
17
     * GlyphiconComponent constructor.
18
     *
19
     * @param $parameters
20
     */
21
    public function __construct($parameters)
22
    {
23
        parent::__construct($parameters);
24
25
        // TODO: Verify all fields
26
//        if (!isset($this->path)) {
27
//            $this->path = $parameters['value'];
28
//        }
29
    }
30
31
    /**
32
     * Return the template path to render this component.
33
     *
34
     * @return string
35
     */
36
    public function getTemplatePath(): string
37
    {
38
        return '@Core/components/glyphicon.html';
39
    }
40
}
41