100% of 20OPs |
100% of 3Lines |
100% of 2Branches |
100% of 2Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\php\tokenizer\iterators\phpArgument::getDefaultValue() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
mageekguy\atoum\php\tokenizer\iterators\phpArgument::appendDefaultValue() | 14 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
# | |
---|---|
1 |
<?php |
2 |
|
3 |
namespace mageekguy\atoum\php\tokenizer\iterators; |
4 |
|
5 |
use |
6 |
mageekguy\atoum\exceptions, |
7 |
mageekguy\atoum\php\tokenizer, |
8 |
mageekguy\atoum\php\tokenizer\iterators |
9 |
; |
10 |
|
11 |
class phpArgument extends tokenizer\iterator |
12 |
{ |
13 |
protected $defaultValue = null; |
14 |
|
15 |
public function getDefaultValue()100% |
16 |
{ |
17 |
return $this->defaultValue; |
18 |
} |
19 |
|
20 |
public function appendDefaultValue(iterators\phpDefaultValue $phpDefaultValue)100% |
21 |
{ |
22 |
$this->defaultValue = $phpDefaultValue; |
23 |
|
24 |
return $this->append($phpDefaultValue); |
25 |
} |
26 |
} |