| 1 | <?php |
||
| 12 | class ConsolePlainFeedback implements FeedbackInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $config; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var OutputInterface |
||
| 22 | */ |
||
| 23 | protected $output; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $config |
||
| 27 | * @param OutputInterface $output |
||
| 28 | */ |
||
| 29 | public function __construct(array $config, OutputInterface $output) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Generates the feedback. |
||
| 37 | * |
||
| 38 | * @param AnalysisResult $result |
||
| 39 | * @param array $params |
||
| 40 | * @return string |
||
|
|
|||
| 41 | */ |
||
| 42 | public function generate(AnalysisResult $result, array $params) |
||
| 69 | |||
| 70 | } |
||
| 71 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.