| 1 | <?php |
||
| 19 | class ParserGeneric implements ParserInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var EntityHydrator |
||
| 23 | */ |
||
| 24 | private $entityHydrator; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param EntityHydrator $entityHydrator |
||
| 28 | */ |
||
| 29 | public function __construct(EntityHydrator $entityHydrator) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $string |
||
| 36 | * @return Graze\UnicontrollerClient\Entity\Entity\EntityInterface |
||
|
|
|||
| 37 | */ |
||
| 38 | public function parse($string) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return ParserGeneric |
||
| 48 | */ |
||
| 49 | public static function factory() |
||
| 55 | } |
||
| 56 |
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.