Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
9 / 9
CRAP
100.00% covered (success)
100.00%
1 / 1
MenuTree
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
9 / 9
9
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getMenuId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getParentId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLabel
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getUrlOrRoute
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSortOrder
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getCreatedAt
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getUpdatedAt
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\Menu\Entity;
6
7 class MenuTree
8{
9    public function __construct(
10        private string $id,
11        private string $menuId,
12        private ?string $parentId,
13        private string $label,
14        private string $urlOrRoute,
15        private int $sortOrder,
16        private int $createdAt,
17        private int $updatedAt
18    ) {}
19
20    public function getId(): string
21    {
22        return $this->id;
23    }
24
25    public function getMenuId(): string
26    {
27        return $this->menuId;
28    }
29
30    public function getParentId(): ?string
31    {
32        return $this->parentId;
33    }
34
35    public function getLabel(): string
36    {
37        return $this->label;
38    }
39
40    public function getUrlOrRoute(): string
41    {
42        return $this->urlOrRoute;
43    }
44
45    public function getSortOrder(): int
46    {
47        return $this->sortOrder;
48    }
49
50    public function getCreatedAt(): int
51    {
52        return $this->createdAt;
53    }
54
55    public function getUpdatedAt(): int
56    {
57        return $this->updatedAt;
58    }
59}