| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class MinecraftServicesProfileCape { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $id; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $state; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $url; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $alias; |
||
| 30 | |||
| 31 | 1 | public function __construct(string $id, string $state, string $url, string $alias) { |
|
| 32 | 1 | $this->id = $id; |
|
| 33 | 1 | $this->state = $state; |
|
| 34 | 1 | $this->url = $url; |
|
| 35 | 1 | $this->alias = $alias; |
|
| 36 | 1 | } |
|
| 37 | |||
| 38 | 1 | public function getId(): string { |
|
| 39 | 1 | return $this->id; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * TODO: figure out literal for not active state |
||
| 44 | * @return 'ACTIVE' |
||
|
|
|||
| 45 | */ |
||
| 46 | 1 | public function getState(): string { |
|
| 48 | } |
||
| 49 | |||
| 50 | 1 | public function getUrl(): string { |
|
| 52 | } |
||
| 53 | |||
| 54 | 1 | public function getAlias(): string { |
|
| 56 | } |
||
| 57 | |||
| 58 | } |
||
| 59 |