@@ -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 | { |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @return \StefanoDb\Adapter\Adapter |
|
| 60 | + * @return \Mockery\MockInterface |
|
| 61 | 61 | */ |
| 62 | 62 | private function getDbAdapterMock() |
| 63 | 63 | { |
@@ -363,6 +363,9 @@ |
||
| 363 | 363 | ->execute($binds); |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | + /** |
|
| 367 | + * @param integer $scope |
|
| 368 | + */ |
|
| 366 | 369 | public function getRoots($scope=null) |
| 367 | 370 | { |
| 368 | 371 | $options = $this->getOptions(); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | namespace StefanoTree\NestedSet\Adapter; |
| 3 | 3 | |
| 4 | 4 | use StefanoDb\Adapter\Adapter as DbAdapter; |
| 5 | -use StefanoLockTable\Adapter\AdapterInterface as LockSqlBuilderInterface; |
|
| 6 | -use StefanoLockTable\Factory as LockSqlBuilderFactory; |
|
| 7 | 5 | use StefanoTree\NestedSet\NodeInfo; |
| 8 | 6 | use StefanoTree\NestedSet\Options; |
| 9 | 7 | use Zend\Db; |
@@ -363,6 +363,9 @@ |
||
| 363 | 363 | ->execute($binds); |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | + /** |
|
| 367 | + * @param integer $scope |
|
| 368 | + */ |
|
| 366 | 369 | public function getRoots($scope=null) |
| 367 | 370 | { |
| 368 | 371 | $options = $this->getOptions(); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | namespace StefanoTree\NestedSet\Adapter; |
| 3 | 3 | |
| 4 | 4 | use StefanoDb\Adapter\Adapter as DbAdapter; |
| 5 | -use StefanoLockTable\Adapter\AdapterInterface as LockSqlBuilderInterface; |
|
| 6 | -use StefanoLockTable\Factory as LockSqlBuilderFactory; |
|
| 7 | 5 | use StefanoTree\NestedSet\NodeInfo; |
| 8 | 6 | use StefanoTree\NestedSet\Options; |
| 9 | 7 | use Zend\Db; |
@@ -161,6 +161,9 @@ discard block |
||
| 161 | 161 | $dbAdapter->update($options->getTableName(), $bind, $where); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | + /** |
|
| 165 | + * @param integer $scope |
|
| 166 | + */ |
|
| 164 | 167 | public function getRoots($scope=null) |
| 165 | 168 | { |
| 166 | 169 | $options = $this->getOptions(); |
@@ -469,6 +472,11 @@ discard block |
||
| 469 | 472 | } |
| 470 | 473 | } |
| 471 | 474 | |
| 475 | + /** |
|
| 476 | + * @param string $column |
|
| 477 | + * @param integer $first |
|
| 478 | + * @param integer $second |
|
| 479 | + */ |
|
| 472 | 480 | protected function getWhereBetween($column, $first, $second) |
| 473 | 481 | { |
| 474 | 482 | $dbAdapter = $this->getDbAdapter(); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | namespace StefanoTree\NestedSet\Adapter; |
| 3 | 3 | |
| 4 | 4 | use StefanoDb\Adapter\Adapter as DbAdapter; |
| 5 | -use StefanoLockTable\Adapter\AdapterInterface as LockSqlBuilderInterface; |
|
| 6 | -use StefanoLockTable\Factory as LockSqlBuilderFactory; |
|
| 7 | 5 | use StefanoTree\NestedSet\NodeInfo; |
| 8 | 6 | use StefanoTree\NestedSet\Options; |
| 9 | 7 | use Zend\Db; |