1 | <?php |
||
28 | class UnderQuery |
||
29 | { |
||
30 | /** |
||
31 | * @var ContainerInterface |
||
32 | */ |
||
33 | private $container; |
||
34 | |||
35 | /** |
||
36 | * @var ConnectionInterface|null |
||
37 | */ |
||
38 | private $connection; |
||
39 | |||
40 | /** |
||
41 | * @param ConnectionInterface|null $connection |
||
42 | * @param ContainerInterface|null $container |
||
43 | */ |
||
44 | 2 | public function __construct(ConnectionInterface $connection = null, ContainerInterface $container = null) |
|
49 | |||
50 | /** |
||
51 | * @return ContainerInterface |
||
52 | */ |
||
53 | 2 | public function getContainer() |
|
57 | |||
58 | /** |
||
59 | * @return null|ConnectionInterface |
||
60 | */ |
||
61 | public function getConnection() |
||
65 | |||
66 | /** |
||
67 | * @param string $class |
||
68 | * |
||
69 | * @return QueryCompilerInterface |
||
70 | */ |
||
71 | 1 | private function createQueryBuilder($class) |
|
79 | |||
80 | /** |
||
81 | * @return SelectBuilder |
||
|
|||
82 | */ |
||
83 | 1 | public function createSelect() |
|
87 | |||
88 | /** |
||
89 | * @return UpdateBuilder |
||
90 | */ |
||
91 | 1 | public function createUpdate() |
|
95 | |||
96 | /** |
||
97 | * @return DeleteBuilder |
||
98 | */ |
||
99 | 1 | public function createDelete() |
|
103 | |||
104 | /** |
||
105 | * @return InsertBuilder |
||
106 | */ |
||
107 | 1 | public function createInsert() |
|
111 | |||
112 | /** |
||
113 | * @return InsertSelectBuilder |
||
114 | */ |
||
115 | 1 | public function createInsertSelect() |
|
119 | } |
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.