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 — master ( 9b048e...fe1ddb )
by Dan
23s queued 16s
created

CombatWeaponForce   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getShieldDamage() 0 2 1
A getName() 0 2 1
A getAmount() 0 2 1
A getArmourDamage() 0 2 1
A getBaseAccuracy() 0 2 1
1
<?php declare(strict_types=1);
2
3
namespace Traits;
4
5
/**
6
 * Common interface used by the subset of AbstractSmrCombatWeapon classes
7
 * that are used for forces (mines, combat drones, and scout drones).
8
 */
9
trait CombatWeaponForce {
10
11
	protected string $name;
12
	protected int $shieldDamage;
13
	protected int $armourDamage;
14
	protected int $accuracy;
15
	protected int $amount;
16
17
	public function getBaseAccuracy() : int {
18
		return $this->accuracy;
19
	}
20
21
	public function getName() : string {
22
		return $this->name;
23
	}
24
25
	public function getShieldDamage() : int {
26
		return $this->shieldDamage;
27
	}
28
29
	public function getArmourDamage() : int {
30
		return $this->armourDamage;
31
	}
32
33
	/**
34
	 * Returns the amount of this type of force.
35
	 */
36
	public function getAmount() : int {
37
		return $this->amount;
38
	}
39
40
}
41