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