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

ParseAsAnnotationParser::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 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