Completed
Push — master ( 293c05...417c40 )
by Jeroen
16:45
created

DefaultFormatter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
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 12
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 8 1
1
<?php
2
3
namespace Protoku\Exceptions\Formatters;
4
5
use Protoku\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
		];
17
	}
18
}