HasSeverity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSeverity() 0 3 1
1
<?php
2
3
namespace FigTree\Exceptions\Concerns;
4
5
trait HasSeverity
6
{
7
	protected int $severity = E_RECOVERABLE_ERROR;
8
9
	/**
10
	 * Get the PHP severity level associated with the Exception.
11
	 *
12
	 * @return integer
13
	 */
14
	public function getSeverity(): int
15
	{
16
		return $this->severity;
17
	}
18
}
19