| 1 | <?php |
||
| 10 | class ViewReferenceTransformerChain |
||
| 11 | { |
||
| 12 | private $viewsReferenceTransformers; |
||
| 13 | |||
| 14 | public function __construct() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * add a view Manager. |
||
| 21 | * |
||
| 22 | * @param DataTransformerInterface $viewManager |
||
|
|
|||
| 23 | * @param string $viewNamespace |
||
| 24 | */ |
||
| 25 | public function addTransformer(DataTransformerInterface $transformer, $viewNamespace, $outputFormat) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $viewNamespace |
||
| 38 | * @param string $outputFormat |
||
| 39 | * |
||
| 40 | * @return DataTransformerInterface |
||
| 41 | */ |
||
| 42 | public function getViewReferenceTransformer($viewNamespace, $outputFormat = 'xml') |
||
| 51 | } |
||
| 52 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.