@@ -45,6 +45,7 @@ discard block |
||
| 45 | 45 | * Create a new DataQuery. |
| 46 | 46 | * |
| 47 | 47 | * @param String The name of the DataObject class that you wish to query |
| 48 | + * @param string $dataClass |
|
| 48 | 49 | */ |
| 49 | 50 | public function __construct($dataClass) { |
| 50 | 51 | $this->dataClass = $dataClass; |
@@ -167,7 +168,7 @@ discard block |
||
| 167 | 168 | /** |
| 168 | 169 | * Ensure that the query is ready to execute. |
| 169 | 170 | * |
| 170 | - * @param array|null $queriedColumns Any columns to filter the query by |
|
| 171 | + * @param string[] $queriedColumns Any columns to filter the query by |
|
| 171 | 172 | * @return SQLSelect The finalised sql query |
| 172 | 173 | */ |
| 173 | 174 | public function getFinalisedQuery($queriedColumns = null) { |
@@ -924,6 +925,7 @@ discard block |
||
| 924 | 925 | |
| 925 | 926 | /** |
| 926 | 927 | * Set an arbitrary query parameter, that can be used by decorators to add additional meta-data to the query. |
| 928 | + * @param string $key |
|
| 927 | 929 | */ |
| 928 | 930 | public function getQueryParam($key) { |
| 929 | 931 | if(isset($this->queryParams[$key])) return $this->queryParams[$key]; |
@@ -956,6 +958,9 @@ discard block |
||
| 956 | 958 | */ |
| 957 | 959 | protected $whereQuery; |
| 958 | 960 | |
| 961 | + /** |
|
| 962 | + * @param string $connective |
|
| 963 | + */ |
|
| 959 | 964 | public function __construct(DataQuery $base, $connective) { |
| 960 | 965 | $this->dataClass = $base->dataClass; |
| 961 | 966 | $this->query = $base->query; |
@@ -965,6 +970,9 @@ discard block |
||
| 965 | 970 | $base->where($this); |
| 966 | 971 | } |
| 967 | 972 | |
| 973 | + /** |
|
| 974 | + * @param string $filter |
|
| 975 | + */ |
|
| 968 | 976 | public function where($filter) { |
| 969 | 977 | if($filter) { |
| 970 | 978 | $this->whereQuery->addWhere($filter); |