FunctionBuilder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace gossi\codegen\generator\builder;
5
6
use gossi\codegen\generator\builder\parts\RoutineBuilderPart;
7
use gossi\codegen\model\AbstractModel;
8
9
class FunctionBuilder extends AbstractBuilder {
10
11
	use RoutineBuilderPart;
12
13 4
	public function build(AbstractModel $model): void {
14 4
		$this->buildDocblock($model);
15
16 4
		$this->writeFunctionStatement($model);
17 4
		$this->writeBody($model);
18 4
	}
19
20
}
21