100% of 90OPs |
100% of 10Lines |
100% of 15Branches |
100% of 9Paths |
| Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
|---|---|---|---|---|---|---|---|---|
| mageekguy\atoum\php\tokenizer\iterators\phpScript::reset() | 14 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\php\tokenizer\iterators\phpScript::appendNamespace() | 15 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\php\tokenizer\iterators\phpScript::getNamespaces() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\php\tokenizer\iterators\phpScript::getNamespace() | 17 | 100% | 1 | 100% | 5 | 100% | 2 | 100% |
| mageekguy\atoum\php\tokenizer\iterators\phpScript::appendImportation() | 15 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\php\tokenizer\iterators\phpScript::getImportations() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\php\tokenizer\iterators\phpScript::getImportation() | 17 | 100% | 1 | 100% | 5 | 100% | 2 | 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 phpScript extends tokenizer\iterators\phpNamespace |
| 12 |
{
|
| 13 |
protected $namespaces = array(); |
| 14 |
protected $importations = array(); |
| 15 |
|
| 16 |
public function reset()100% |
| 17 |
{
|
| 18 |
$this->namespaces = array(); |
| 19 |
|
| 20 |
return parent::reset(); |
| 21 |
} |
| 22 |
|
| 23 |
public function appendNamespace(iterators\phpNamespace $phpNamespace)100% |
| 24 |
{
|
| 25 |
$this->namespaces[] = $phpNamespace; |
| 26 |
|
| 27 |
return $this->append($phpNamespace); |
| 28 |
} |
| 29 |
|
| 30 |
public function getNamespaces()100% |
| 31 |
{
|
| 32 |
return $this->namespaces; |
| 33 |
} |
| 34 |
|
| 35 |
public function getNamespace($index)100% |
| 36 |
{
|
| 37 |
return (isset($this->namespaces[$index]) === false ? null : $this->namespaces[$index]); |
| 38 |
} |
| 39 |
|
| 40 |
public function appendImportation(iterators\phpImportation $phpImportation)100% |
| 41 |
{
|
| 42 |
$this->importations[] = $phpImportation; |
| 43 |
|
| 44 |
return $this->append($phpImportation); |
| 45 |
} |
| 46 |
|
| 47 |
public function getImportations()100% |
| 48 |
{
|
| 49 |
return $this->importations; |
| 50 |
} |
| 51 |
|
| 52 |
public function getImportation($index)100% |
| 53 |
{
|
| 54 |
return (isset($this->importations[$index]) === false ? null : $this->importations[$index]); |
| 55 |
} |
| 56 |
} |