c0dec3de82122e8a9b8f543103e05331a2d94bb7
[yaffs-website] / vendor / phpspec / prophecy / src / Prophecy / PhpDocumentor / LegacyClassTagRetriever.php
1 <?php
2
3 /*
4  * This file is part of the Prophecy.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *     Marcello Duarte <marcello.duarte@gmail.com>
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 <theo.fidry@gmail.com>
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 }