MethodsParser   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 9 2
1
<?php
2
3
namespace BultonFr\Annotation\Parsers;
4
5
/**
6
 * Do action for annotation declared on a method
7
 *
8
 * @package BultonFr\Annotation
9
 */
10
class MethodsParser extends AbstractManyParser
11
{
12
    /**
13
     * {@inheritDoc}
14
     *
15
     * Instanciate the parser object for all methods into the class, and add it
16
     * to the list on AbstractManyParser.
17
     */
18
    public function run()
19
    {
20 1
        $methodList = $this->reflection->getMethods();
0 ignored issues
show
Bug introduced by
The method getMethods() does not exist on Reflector. It seems like you code against a sub-type of Reflector such as ReflectionObject or ReflectionClass. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
        /** @scrutinizer ignore-call */ 
21
        $methodList = $this->reflection->getMethods();
Loading history...
21
22 1
        foreach ($methodList as $methodInfo) {
23 1
            $parser = new MethodParser($this->parserManager, $methodInfo);
24 1
            $parser->run();
25
26 1
            $this->addItem($methodInfo->getName(), $parser);
27
        }
28 1
    }
29
}
30