Formatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 8

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 8
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
namespace Workana\AsyncJobs\Formatter;
3
4
/**
5
 * Root formatter
6
 *
7
 * @author Carlos Frutos <[email protected]>
8
 */
9
class Formatter extends AggregateFormatter
10
{
11
    public function __construct()
12
    {
13
        parent::__construct();
14
15
16
        $this->addFormatter(new AggregateChildEventExceptionFormatter(), 1);
17
        $this->addFormatter(new QueueableEntityFormatter(), 1);
18
        $this->addFormatter(new AsyncEventFormatter(), 1);
19
        $this->addFormatter(new AsyncActionFormatter(), 0);
20
        $this->addFormatter(new ExecutionInfoFormatter(), 0);
21
        $this->addFormatter(new ExceptionFormatter(), 0);
22
        $this->addFormatter(new ValueFormatter(), -1);
23
    }
24
}