Formatter::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 0
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
}