Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 8 |
App\Models\Einfach | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 7 |
recursion | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 7 |
<?php | |
namespace App\Models; | |
class Einfach { | |
public function recursion() { | |
$nestedSet = new \NestedSet(); | |
$nestedSet->setTable('category'); | |
$array = $nestedSet->getAllNodes(); | |
$categoryCollection = new \App\Models\CategoryCollection(); | |
$categoryCollection->fromArrayToCategory($array); | |
return $categoryCollection; | |
} | |
} | |
$new = new Einfach(); | |
print_r($new->recursion()); |