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 12namespace Prophecy\PhpDocumentor; 13 14use phpDocumentor\Reflection\DocBlock; 15use phpDocumentor\Reflection\DocBlock\Tag\MethodTag as LegacyMethodTag; 16 17/** 18 * @author Théo FIDRY <theo.fidry@gmail.com> 19 * 20 * @internal 21 */ 22final 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