Passed
Branch master (7e4b7e)
by Mariano
04:51
created

ParseAsAnnotationParser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
1
<?php
2
namespace Mcustiel\SimpleRequest\Strategies\Annotations;
3
4
use Mcustiel\SimpleRequest\Annotation\RequestAnnotation;
5
use Mcustiel\SimpleRequest\Strategies\PropertyParserBuilder;
6
7
class ParseAsAnnotationParser implements AnnotationParser
8
{
9 2
    public function execute(RequestAnnotation $annotation, PropertyParserBuilder $propertyParser)
10
    {
11 2
        $propertyParser->parseAs($annotation->getValue());
12 2
    }
13
}
14