Total Complexity | 6 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class EloquentFormatter extends NormalizerFormatter |
||
11 | { |
||
12 | /** |
||
13 | * type |
||
14 | */ |
||
15 | const LOG = 'log'; |
||
16 | const STORE = 'store'; |
||
17 | const CHANGE = 'change'; |
||
18 | const DELETE = 'delete'; |
||
19 | |||
20 | /** |
||
21 | * result |
||
22 | */ |
||
23 | const SUCCESS = 'success'; |
||
24 | const NEUTRAL = 'neutral'; |
||
25 | const FAILURE = 'failure'; |
||
26 | |||
27 | public function __construct() |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function format(array $record) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Convert a log message into an DB Log entity |
||
43 | * |
||
44 | * @param array $record |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function getDocument(array $record) |
||
63 |