@@ -123,7 +123,7 @@ |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * @param string|callable|\Wandu\Database\Contracts\QueryInterface $query |
|
126 | + * @param callable $query |
|
127 | 127 | * @param array $bindings |
128 | 128 | * @return \PDOStatement |
129 | 129 | */ |
@@ -359,7 +359,7 @@ |
||
359 | 359 | } |
360 | 360 | |
361 | 361 | /** |
362 | - * @param string|\Wandu\Database\Contracts\ExpressionInterface $name |
|
362 | + * @param string $name |
|
363 | 363 | * @param string $type |
364 | 364 | * @param array $attributes |
365 | 365 | * @return \Wandu\Database\Query\Expression\ColumnExpression|\Wandu\Database\Contracts\ExpressionInterface |
@@ -52,6 +52,12 @@ |
||
52 | 52 | return $this; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $logicalOp |
|
57 | + * @param callable $name |
|
58 | + * @param string $operator |
|
59 | + * @param string $value |
|
60 | + */ |
|
55 | 61 | protected function addWhereQuery($logicalOp, $name, $operator = null, $value = null) |
56 | 62 | { |
57 | 63 | if (!is_string($name) && is_callable($name)) { |
@@ -195,7 +195,7 @@ |
||
195 | 195 | /** |
196 | 196 | * @param \ReflectionProperty $property |
197 | 197 | * @param object $object |
198 | - * @return mixed |
|
198 | + * @return null|callable |
|
199 | 199 | */ |
200 | 200 | private function pickProperty(ReflectionProperty $property, $object) |
201 | 201 | { |
@@ -8,6 +8,9 @@ |
||
8 | 8 | |
9 | 9 | class RepositorySettings |
10 | 10 | { |
11 | + /** |
|
12 | + * @param string $model |
|
13 | + */ |
|
11 | 14 | public static function fromAnnotation($model, Reader $reader) |
12 | 15 | { |
13 | 16 | $settings = [ |