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

ExpandedValue   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 84.62%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 37
ccs 11
cts 13
cp 0.8462
rs 10
wmc 5
lcom 1
cbo 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 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 2
    public function __construct($string)
18
    {
19 2
        $this->evaluated = $string;
20 2
    }
21
22 2
    public function getEvaluated ()
23
    {
24 2
        return $this->evaluated;
25
    }
26
27 2
    public function setEvaluated ($string)
28
    {
29 2
        $this->evaluated = $string;
30 2
    }
31
32
    public function getIterators ()
33
    {
34
        return $this->iterators;
35
    }
36
37 2
    public function setIterator ($key, $value)
38
    {
39 2
        $this->iterators[$key] = $value;
40
    }
41
}