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
Pull Request — master (#1078)
by Dan
05:25
created

CombatWeaponForce::getArmourDamage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
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