Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | public function __construct(PhpClassProperty $property) |
||
17 | { |
||
18 | $name = $property->getNamedVar()->getName(); |
||
19 | parent::__construct('get' . ucfirst($name), PhpFlags::VIS_PUBLIC); |
||
20 | |||
21 | $this->skipCodeCoverage = true; |
||
22 | |||
23 | $this->setResult($property->getNamedVar()->getType()); |
||
24 | $this->setBody( |
||
25 | <<<PHP |
||
26 | return \$this->{$name}; |
||
27 | |||
32 | } |