Completed
Pull Request — master (#20)
by Vladimir
02:14
created

ExpandedValue   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 86.67%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 42
ccs 13
cts 15
cp 0.8667
rs 10
c 1
b 0
f 0
wmc 6
lcom 1
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
A getEvaluated() 0 4 1
A setEvaluated() 0 4 1
A getIterators() 0 4 1
A setIterator() 0 4 1
1
<?php
2
3
namespace allejo\stakx\FrontMatter;
4
5
class ExpandedValue
6
{
7
    /**
8
     * @var string
9
     */
10
    private $evaluated;
11
12
    /**
13
     * @var string[]
14
     */
15
    private $iterators;
16
17 3
    public function __construct($string)
18
    {
19 3
        $this->evaluated = $string;
20 3
    }
21
22
    public function __toString()
23
    {
24
        return $this->getEvaluated();
25
    }
26
27 3
    public function getEvaluated ()
28
    {
29 3
        return $this->evaluated;
30
    }
31
32 3
    public function setEvaluated ($string)
33
    {
34 3
        $this->evaluated = $string;
35 3
    }
36
37 1
    public function getIterators ()
38
    {
39 1
        return $this->iterators;
40
    }
41
42 3
    public function setIterator ($key, $value)
43
    {
44 3
        $this->iterators[$key] = $value;
45
    }
46
}