@@ -413,12 +413,18 @@ |
||
413 | 413 | ->getRoots(); |
414 | 414 | } |
415 | 415 | |
416 | + /** |
|
417 | + * @param integer $rootNodeId |
|
418 | + */ |
|
416 | 419 | public function isValid($rootNodeId) |
417 | 420 | { |
418 | 421 | return $this->_getValidator() |
419 | 422 | ->isValid($rootNodeId); |
420 | 423 | } |
421 | 424 | |
425 | + /** |
|
426 | + * @param integer $rootNodeId |
|
427 | + */ |
|
422 | 428 | public function rebuild($rootNodeId) |
423 | 429 | { |
424 | 430 | $this->_getValidator() |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @return DbAdapter |
|
64 | + * @return Mockery\MockInterface |
|
65 | 65 | */ |
66 | 66 | private function getDbAdapterMock() |
67 | 67 | { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * @return \Zend_Db_Adapter_Pdo_Sqlite |
|
61 | + * @return \Mockery\MockInterface |
|
62 | 62 | */ |
63 | 63 | protected function getDbAdapterMock() |
64 | 64 | { |
@@ -527,6 +527,11 @@ |
||
527 | 527 | return (0 < count($resultArray)) ? $resultArray : array(); |
528 | 528 | } |
529 | 529 | |
530 | + /** |
|
531 | + * @param string $column |
|
532 | + * @param integer $first |
|
533 | + * @param integer $second |
|
534 | + */ |
|
530 | 535 | protected function getWhereBetween($column, $first, $second) |
531 | 536 | { |
532 | 537 | $dbAdapter = $this->getDbAdapter(); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | * @param bool $onlyValidate |
80 | 80 | * @param int $left |
81 | 81 | * @param int $level |
82 | - * @return int|mixed |
|
82 | + * @return integer |
|
83 | 83 | * @throws TreeIsBrokenException if tree is broken and $onlyValidate is true |
84 | 84 | */ |
85 | 85 | private function _rebuild(NodeInfo $parentNodeInfo, $onlyValidate = false, $left = 1, $level = 0) |