KeywordValue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCompiled() 0 4 1
A initializeFromOldFormat() 0 4 1
1
<?php
2
namespace LesserPhp\Compiler\Value;
3
4
/**
5
 * lesserphp
6
 * https://www.maswaba.de/lesserphp
7
 *
8
 * LESS CSS compiler, adapted from http://lesscss.org
9
 *
10
 * Copyright 2013, Leaf Corcoran <[email protected]>
11
 * Copyright 2016, Marcus Schwarz <[email protected]>
12
 * Copyright 2017, Stefan Pöhner <[email protected]>
13
 * Licensed under MIT or GPLv3, see LICENSE
14
 *
15
 * @package LesserPhp
16
 */
17
18
class KeywordValue extends AbstractValue
19
{
20
    /**
21
     * @var string
22
     */
23
    private $keyword;
24
25
    /**
26
     * @inheritdoc
27
     */
28 34
    public function getCompiled()
29
    {
30 34
        return $this->keyword;
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36 34
    public function initializeFromOldFormat(array $value)
37
    {
38 34
        $this->keyword = $value[1];
39 34
    }
40
}
41