LegacyClassTagRetriever   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTagList() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the Prophecy.
5
 * (c) Konstantin Kudryashov <[email protected]>
6
 *     Marcello Duarte <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Prophecy\PhpDocumentor;
13
14
use phpDocumentor\Reflection\DocBlock;
15
use phpDocumentor\Reflection\DocBlock\Tag\MethodTag as LegacyMethodTag;
16
17
/**
18
 * @author Théo FIDRY <[email protected]>
19
 *
20
 * @internal
21
 */
22
final class LegacyClassTagRetriever implements MethodTagRetrieverInterface
23
{
24
    /**
25
     * @param \ReflectionClass $reflectionClass
26
     *
27
     * @return LegacyMethodTag[]
28
     */
29
    public function getTagList(\ReflectionClass $reflectionClass)
30
    {
31
        $phpdoc = new DocBlock($reflectionClass->getDocComment());
32
33
        return $phpdoc->getTagsByName('method');
34
    }
35
}
36