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

ExpandedValue::getIterators()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
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
}