1 | <?php |
||
25 | class QueryBuilder |
||
26 | { |
||
27 | /** |
||
28 | * @var ContainerInterface $container |
||
29 | */ |
||
30 | private $container; |
||
31 | |||
32 | /** |
||
33 | * @param ContainerInterface|null $container |
||
34 | */ |
||
35 | 34 | public function __construct(ContainerInterface $container = null) |
|
39 | |||
40 | /** |
||
41 | * @return ContainerInterface |
||
42 | */ |
||
43 | public function getContainer() |
||
47 | |||
48 | /** |
||
49 | * @param string $class |
||
50 | * |
||
51 | * @return array |
||
|
|||
52 | */ |
||
53 | 34 | private function createQueryBuilder($class) |
|
65 | |||
66 | /** |
||
67 | * @return SelectBuilder |
||
68 | */ |
||
69 | 26 | public function select() |
|
73 | |||
74 | /** |
||
75 | * @return UpdateBuilder |
||
76 | */ |
||
77 | 4 | public function update() |
|
81 | |||
82 | /** |
||
83 | * @return DeleteBuilder |
||
84 | */ |
||
85 | 2 | public function delete() |
|
89 | |||
90 | /** |
||
91 | * @return InsertBuilder |
||
92 | */ |
||
93 | 2 | public function insert() |
|
97 | |||
98 | /** |
||
99 | * @return InsertSelectBuilder |
||
100 | */ |
||
101 | 1 | public function insertSelect() |
|
105 | } |
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.