AnnotationVisitorFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getVisitor() 0 4 1
A getConfigVisitor() 0 4 1
1
<?php
2
3
namespace Pgs\ElasticOM\Annotation\Visitor;
4
5
use Doctrine\Common\Annotations\AnnotationReader;
6
7
class AnnotationVisitorFactory
8
{
9 1
    public static function getVisitor()
10
    {
11 1
        return new AnnotationVisitor(new AnnotationReader(), new ClassMetadataVisiteeFactory());
12
    }
13
14 1
    public static function getConfigVisitor()
15
    {
16 1
        return new AnnotationConfigVisitor(new AnnotationReader(), new ClassMetadataVisiteeFactory());
17
    }
18
}
19