DefaultFormatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 9 1
1
<?php
2
3
namespace Protoku\Exceptions\Formatters;
4
5
use Protoku\Exceptions\Interfaces\FormatterInterface;
6
7
class DefaultFormatter implements FormatterInterface
8
{
9
10
	public function format(\Throwable $e): array
11
	{
12
		return [
13
			'message' => $e->getMessage(),
14
			'file' => $e->getFile(),
15
			'line' => $e->getLine(),
16
			'trace' => $e->getTrace(),
17
		];
18
	}
19
}