Completed
Pull Request — master (#33)
by
unknown
07:50
created

PhpTraitVisitor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 60%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 2
dl 0
loc 13
ccs 3
cts 5
cp 0.6
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getTrait() 0 3 1
1
<?php
2
namespace gossi\codegen\parser\visitor;
3
4
use gossi\codegen\model\PhpTrait;
5
6
class PhpTraitVisitor extends AbstractPhpStructVisitor {
7
8 1
	public function __construct() {
9 1
		parent::__construct(new PhpTrait());
10 1
	}
11
12
	/**
13
	 * @return PhpTrait
14
	 */
15
	public function getTrait() {
16
		return $this->struct;
17
	}
18
}
19