| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 16 | public function setData(string $id, string $name, string $desc, int $position, bool $goSub = false): self |
|
| 21 | { |
||
| 22 | 16 | $this->id = $id; |
|
| 23 | 16 | $this->name = $name; |
|
| 24 | 16 | $this->desc = $desc; |
|
| 25 | 16 | $this->position = $position; |
|
| 26 | 16 | $this->goSub = $goSub; |
|
| 27 | 16 | $this->submenu = null; |
|
| 28 | 16 | return $this; |
|
| 29 | } |
||
| 73 |