Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
12 / 12 |
|
100.00% |
12 / 12 |
CRAP | |
100.00% |
1 / 1 |
| MenuRecord | |
100.00% |
12 / 12 |
|
100.00% |
12 / 12 |
12 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getTitle | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getIcon | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getUrl | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getBadgeText | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getBadgeColor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getTarget | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getStatus | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getCreatedAt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getUpdatedAt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Domain\Menu\Entity; |
| 6 | |
| 7 | class MenuRecord |
| 8 | { |
| 9 | public function __construct( |
| 10 | private string $id, |
| 11 | private string $type, |
| 12 | private string $title, |
| 13 | private ?string $icon, |
| 14 | private ?string $url, |
| 15 | private ?string $badgeText, |
| 16 | private ?string $badgeColor, |
| 17 | private ?string $target, |
| 18 | private string $status, |
| 19 | private int $createdAt, |
| 20 | private int $updatedAt |
| 21 | ) {} |
| 22 | |
| 23 | public function getId(): string |
| 24 | { |
| 25 | return $this->id; |
| 26 | } |
| 27 | |
| 28 | public function getType(): string |
| 29 | { |
| 30 | return $this->type; |
| 31 | } |
| 32 | |
| 33 | public function getTitle(): string |
| 34 | { |
| 35 | return $this->title; |
| 36 | } |
| 37 | |
| 38 | public function getIcon(): ?string |
| 39 | { |
| 40 | return $this->icon; |
| 41 | } |
| 42 | |
| 43 | public function getUrl(): ?string |
| 44 | { |
| 45 | return $this->url; |
| 46 | } |
| 47 | |
| 48 | public function getBadgeText(): ?string |
| 49 | { |
| 50 | return $this->badgeText; |
| 51 | } |
| 52 | |
| 53 | public function getBadgeColor(): ?string |
| 54 | { |
| 55 | return $this->badgeColor; |
| 56 | } |
| 57 | |
| 58 | public function getTarget(): ?string |
| 59 | { |
| 60 | return $this->target; |
| 61 | } |
| 62 | |
| 63 | public function getStatus(): string |
| 64 | { |
| 65 | return $this->status; |
| 66 | } |
| 67 | |
| 68 | public function getCreatedAt(): int |
| 69 | { |
| 70 | return $this->createdAt; |
| 71 | } |
| 72 | |
| 73 | public function getUpdatedAt(): int |
| 74 | { |
| 75 | return $this->updatedAt; |
| 76 | } |
| 77 | } |