Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 7 |
CRAP | |
0.00% |
0 / 1 |
| MenuSort | |
0.00% |
0 / 7 |
|
0.00% |
0 / 7 |
56 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getMenuRecordId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getParentId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSortOrder | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getCreatedAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getUpdatedAt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Domain\Menu\Entity; |
| 6 | |
| 7 | class MenuSort |
| 8 | { |
| 9 | public function __construct( |
| 10 | private string $id, |
| 11 | private string $menuRecordId, |
| 12 | private ?string $parentId, |
| 13 | private int $sortOrder, |
| 14 | private int $createdAt, |
| 15 | private int $updatedAt |
| 16 | ) {} |
| 17 | |
| 18 | public function getId(): string |
| 19 | { |
| 20 | return $this->id; |
| 21 | } |
| 22 | |
| 23 | public function getMenuRecordId(): string |
| 24 | { |
| 25 | return $this->menuRecordId; |
| 26 | } |
| 27 | |
| 28 | public function getParentId(): ?string |
| 29 | { |
| 30 | return $this->parentId; |
| 31 | } |
| 32 | |
| 33 | public function getSortOrder(): int |
| 34 | { |
| 35 | return $this->sortOrder; |
| 36 | } |
| 37 | |
| 38 | public function getCreatedAt(): int |
| 39 | { |
| 40 | return $this->createdAt; |
| 41 | } |
| 42 | |
| 43 | public function getUpdatedAt(): int |
| 44 | { |
| 45 | return $this->updatedAt; |
| 46 | } |
| 47 | } |