| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function __construct($name, $returnType = null, array $parameters = array()) |
||
| 13 | { |
||
| 14 | $this->addPart($returnType); |
||
| 15 | |||
| 16 | if (count($parameters) === 0) { |
||
| 17 | $this->addPart($name, null, '()'); |
||
| 18 | } else { |
||
| 19 | $this->addPart($name, null, '('.$this->handleParameters($parameters).')'); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 45 |