@@ -24,7 +24,7 @@ |
||
24 | 24 | * SQLSelect constructor. |
25 | 25 | * |
26 | 26 | * @param PersistenceService $persistence |
27 | - * @param $entity |
|
27 | + * @param string $entity |
|
28 | 28 | */ |
29 | 29 | public function __construct(PersistenceService $persistence, $entity) { |
30 | 30 | parent::__construct($entity); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * SQLUpdate constructor. |
23 | 23 | * |
24 | 24 | * @param PersistenceService $persistence |
25 | - * @param $entity |
|
25 | + * @param string $entity |
|
26 | 26 | */ |
27 | 27 | public function __construct(PersistenceService $persistence, $entity) { |
28 | 28 | parent::__construct($persistence, $entity); |
@@ -14,6 +14,9 @@ |
||
14 | 14 | return []; |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $tableName |
|
19 | + */ |
|
17 | 20 | public function getColsOfTable($tableName) { |
18 | 21 | return array_keys($this->getMetaData($tableName)); |
19 | 22 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $param = "p_" . count($this->params); |
31 | 31 | $this->params[$param] = $value; |
32 | 32 | // TODO check the ':' with NoSQL |
33 | - $condition = new Condition($col, $op, $value === null ? null : ":" . $param); |
|
33 | + $condition = new Condition($col, $op, $value === null ? null : ":" . $param); |
|
34 | 34 | if ($this->predicate != null) { |
35 | 35 | $method = $this->method; |
36 | 36 | $condition->$method($this->predicate); |