1 | <?php |
||
23 | class Handler |
||
24 | { |
||
25 | /** |
||
26 | * @var Registry |
||
27 | */ |
||
28 | private $registry; |
||
29 | |||
30 | /** |
||
31 | * @var QueryBuilder |
||
32 | */ |
||
33 | private $qb; |
||
34 | |||
35 | /** |
||
36 | * @param Registry $registry |
||
37 | * @param QueryBuilder $qb |
||
38 | */ |
||
39 | 3 | public function __construct(Registry $registry, QueryBuilder $qb) |
|
48 | |||
49 | /** |
||
50 | * handle specification for queryfactory |
||
51 | * |
||
52 | * @param Specification $spec |
||
53 | * |
||
54 | * @return Base |
||
|
|||
55 | */ |
||
56 | 1 | public function handle(Specification $spec) |
|
62 | |||
63 | /** |
||
64 | * Register a factory for specification |
||
65 | * |
||
66 | * @param string $classname specification fully qualified classname |
||
67 | * @param Factory $factory |
||
68 | */ |
||
69 | 2 | public function registerFactory($classname, Factory $factory) |
|
73 | } |
||
74 |
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.