1 | <?php |
||
25 | class QueryBuilder |
||
26 | { |
||
27 | /** |
||
28 | * @var ContainerInterface $container |
||
29 | */ |
||
30 | private $container; |
||
31 | |||
32 | /** |
||
33 | * @param ContainerInterface|null $container |
||
34 | */ |
||
35 | 6 | 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) |
|
63 | |||
64 | /** |
||
65 | * @return SelectBuilder |
||
66 | */ |
||
67 | 26 | public function select() |
|
71 | |||
72 | /** |
||
73 | * @return UpdateBuilder |
||
74 | */ |
||
75 | 4 | public function update() |
|
79 | |||
80 | /** |
||
81 | * @return DeleteBuilder |
||
82 | */ |
||
83 | 2 | public function delete() |
|
87 | |||
88 | /** |
||
89 | * @return InsertBuilder |
||
90 | */ |
||
91 | 2 | public function insert() |
|
95 | |||
96 | /** |
||
97 | * @return InsertSelectBuilder |
||
98 | */ |
||
99 | 1 | public function insertSelect() |
|
103 | } |
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.