Skip to content

Commit 6d41be7

Browse files
committed
Add phpdoc comments
1 parent bbe7310 commit 6d41be7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/JSONDB/QueryParser.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,12 @@ private function _parseGroupExtension($clause)
402402
return $parsedClause;
403403
}
404404

405+
/**
406+
* Parses an on() extension
407+
* @param string $clause
408+
* @return array
409+
* @throws Exception
410+
*/
405411
private function _parseOnExtension($clause)
406412
{
407413
$parsedClause = array_map(function($field) {
@@ -418,6 +424,12 @@ private function _parseOnExtension($clause)
418424
return $parsedClause[0];
419425
}
420426

427+
/**
428+
* Parses an link() extension
429+
* @param string $clause
430+
* @return array
431+
* @throws Exception
432+
*/
421433
private function _parseLinkExtension($clause)
422434
{
423435
$parsedClause = array_map(function($field) {

src/JSONDB/QueryResult.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ public function valid()
110110
}
111111
}
112112

113+
/**
114+
* Returns the query string
115+
*/
113116
public function queryString()
114117
{
115118
return $this->database->queryString();
@@ -356,6 +359,7 @@ public function __construct(array $result_array)
356359
}
357360

358361
/**
362+
* Sets the results to use
359363
* @param mixed $result
360364
*/
361365
private function _setResult($result)
@@ -364,6 +368,8 @@ private function _setResult($result)
364368
}
365369

366370
/**
371+
* Gets a row value if the given row name exist
372+
* in the table.
367373
* @param string $name
368374
* @return mixed
369375
* @throws Exception

0 commit comments

Comments
 (0)