| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Method extends AbstractFunction implements BlockInterface |
||
| 8 | { |
||
| 9 | use ScopedContentTrait; |
||
| 10 | use DocBlockTrait; |
||
| 11 | |||
| 12 | 8 | public function __construct(string $name, string $modifier = Modifier::PUBLIC, string $returnType = '') |
|
| 13 | { |
||
| 14 | 8 | $this->signature = new Signature($name, $modifier, $returnType); |
|
| 15 | 8 | $this->dependencyAwareChildren = [$this->signature]; |
|
| 16 | 8 | } |
|
| 17 | |||
| 18 | 4 | public static function new(string $name, string $modifier = Modifier::PUBLIC, string $returnType = ''): self |
|
| 21 | } |
||
| 22 | |||
| 23 | 11 | public function generate(): string |
|
| 33 |