Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 4 | public function __construct(PhpConstant $patternConst, PhpAnyType $type) |
|
16 | { |
||
17 | 4 | $name = PhpCode::makePhpName($patternConst->getValue(), false); |
|
18 | 4 | parent::__construct('get' . $name . 'Values', PhpFlags::VIS_PUBLIC); |
|
19 | |||
20 | 4 | $this->skipCodeCoverage = true; |
|
21 | |||
22 | 4 | $this->setResult(new ArrayOf($type)); |
|
23 | 4 | $this->setBody( |
|
24 | <<<PHP |
||
25 | \$result = array(); |
||
26 | 4 | if (!\$names = \$this->getPatternPropertyNames(self::{$patternConst->getName()})) { |
|
27 | return \$result; |
||
37 | } |