| 1 | <?php |
||
| 12 | class ReturnAndYieldInOneMethod implements Pass\AnalyzerPassInterface |
||
| 13 | { |
||
| 14 | const DESCRIPTION = 'Checks for using return and yield statements in a one method and discourages it.'; |
||
| 15 | |||
| 16 | use DefaultMetadataPassTrait; |
||
| 17 | use ResolveExpressionTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param ClassMethod $func |
||
| 21 | * @param Context $context |
||
| 22 | * @return bool |
||
| 23 | */ |
||
| 24 | public function pass(ClassMethod $func, Context $context) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getRegister() |
||
| 54 | } |
||
| 55 |