DefaultJobFormatter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A format() 0 4 1
A canFormat() 0 5 1
1
<?php
2
namespace Workana\AsyncJobs\Formatter;
3
4
use Workana\AsyncJobs\Job;
5
6
class DefaultJobFormatter implements JobFormatterInterface
7
{
8
    /**
9
     * {@inheritdoc}
10
     */
11
    public function format(Job $job)
12
    {
13
14
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function canFormat(Job $job)
20
    {
21
        //It allways can format a job
22
        return true;
23
    }
24
}