Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Failed Conditions
Push — main ( d9cfb9...10f5c7 )
by Dan
32s queued 21s
created

ShipIllusion   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 2 1
1
<?php declare(strict_types=1);
2
3
namespace Smr;
4
5
use SmrShipType;
6
7
/**
8
 * Data storage for the SmrShip::illusionShip property.
9
 */
10
class ShipIllusion {
11
12
	public function __construct(
13
		public readonly int $shipTypeID,
14
		public readonly int $attackRating,
15
		public readonly int $defenseRating,
16
	) {}
17
18
	public function getName(): string {
19
		return SmrShipType::get($this->shipTypeID)->getName();
20
	}
21
22
}
23