Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 12 |
CRAP | |
0.00% |
0 / 30 |
| App\Models\Node | |
0.00% |
0 / 1 |
|
0.00% |
0 / 12 |
156 | |
0.00% |
0 / 30 |
| getId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getLft | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getRgt | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getLevel | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| setId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| setName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| setLft | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| setRgt | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| setLevel | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| getChildren | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| setChildren | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
|||
| <?php | |
| namespace App\Models; | |
| class Node { | |
| protected $id; | |
| protected $name; | |
| protected $lft; | |
| protected $rgt; | |
| protected $level; | |
| protected $children = []; | |
| public function getId() { | |
| return $this->id; | |
| } | |
| public function getName() { | |
| return $this->name; | |
| } | |
| public function getLft() { | |
| return $this->lft; | |
| } | |
| public function getRgt() { | |
| return $this->rgt; | |
| } | |
| public function getLevel() { | |
| return $this->level; | |
| } | |
| public function setId($id) { | |
| $this->id = $id; | |
| return $this; | |
| } | |
| public function setName($name) { | |
| $this->name = $name; | |
| return $this; | |
| } | |
| public function setLft($lft) { | |
| $this->lft = $lft; | |
| return $this; | |
| } | |
| public function setRgt($rgt) { | |
| $this->rgt = $rgt; | |
| return $this; | |
| } | |
| public function setLevel($level) { | |
| $this->level = $level; | |
| return $this; | |
| } | |
| public function getChildren() { | |
| return $this->children; | |
| } | |
| public function setChildren($children) { | |
| $this->children = $children; | |
| return $this; | |
| } | |
| } |