1 | <?php |
||
20 | class Handler |
||
21 | { |
||
22 | /** |
||
23 | * @param Registry |
||
24 | */ |
||
25 | private $registry; |
||
26 | |||
27 | /** |
||
28 | * @param Registry $registry |
||
29 | */ |
||
30 | 3 | public function __construct(Registry $registry) |
|
38 | |||
39 | /** |
||
40 | * handle specification for querybuilder |
||
41 | * |
||
42 | * @param Specification $spec |
||
43 | * @param QueryBuilder $qb |
||
44 | * |
||
45 | * @return array |
||
|
|||
46 | */ |
||
47 | 1 | public function handle(Specification $spec, QueryBuilder $qb) |
|
53 | |||
54 | /** |
||
55 | * Register a builder for specification |
||
56 | * |
||
57 | * @param string $classname specification fully qualified classname |
||
58 | * @param Builder $builder |
||
59 | */ |
||
60 | 2 | public function registerBuilder($classname, Builder $builder) |
|
64 | } |
||
65 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.