Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
8 / 8 |
|
100.00% |
8 / 8 |
CRAP | |
100.00% |
1 / 1 |
| ApiRecord | |
100.00% |
8 / 8 |
|
100.00% |
8 / 8 |
8 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getHostId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getApiKey | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getEndpointUrl | |
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\Api\Entity; |
| 6 | |
| 7 | class ApiRecord |
| 8 | { |
| 9 | public function __construct( |
| 10 | private string $id, |
| 11 | private string $hostId, |
| 12 | private string $apiKey, |
| 13 | private string $endpointUrl, |
| 14 | private string $status, |
| 15 | private int $createdAt, |
| 16 | private int $updatedAt |
| 17 | ) {} |
| 18 | |
| 19 | public function getId(): string |
| 20 | { |
| 21 | return $this->id; |
| 22 | } |
| 23 | |
| 24 | public function getHostId(): string |
| 25 | { |
| 26 | return $this->hostId; |
| 27 | } |
| 28 | |
| 29 | public function getApiKey(): string |
| 30 | { |
| 31 | return $this->apiKey; |
| 32 | } |
| 33 | |
| 34 | public function getEndpointUrl(): string |
| 35 | { |
| 36 | return $this->endpointUrl; |
| 37 | } |
| 38 | |
| 39 | public function getStatus(): string |
| 40 | { |
| 41 | return $this->status; |
| 42 | } |
| 43 | |
| 44 | public function getCreatedAt(): int |
| 45 | { |
| 46 | return $this->createdAt; |
| 47 | } |
| 48 | |
| 49 | public function getUpdatedAt(): int |
| 50 | { |
| 51 | return $this->updatedAt; |
| 52 | } |
| 53 | } |