JobTiming::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Dtc\QueueBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
Bug introduced by
The type Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Dtc\QueueBundle\Model\JobTiming as BaseJobTiming;
7
8
#[ORM\Entity]
9
#[ORM\Table(name: 'dtc_queue_job_timing')]
10
#[ORM\Index(columns: ['status', 'finished_at'], name: 'job_timing_finished_at')]
11
class JobTiming extends BaseJobTiming
12
{
13
    #[ORM\Column(name: 'id', type: 'bigint')]
14
    #[ORM\Id]
15
    #[ORM\GeneratedValue(strategy: 'AUTO')]
16
    protected $id;
17
18
    #[ORM\Column(name: 'finished_at', type: 'datetime')]
19
    protected $finishedAt;
20
21
    #[ORM\Column(name: 'status', type: 'integer')]
22
    protected $status;
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getId()
28
    {
29
        return $this->id;
30
    }
31
32
    /**
33
     * @param mixed $id
34 1
     */
35
    public function setId($id)
36 1
    {
37
        $this->id = $id;
38
    }
39
}
40