Completed
Branch master (38bcb9)
by Matthew
02:36
created

JobTiming   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 35
ccs 0
cts 5
cp 0
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
1
<?php
2
3
namespace Dtc\QueueBundle\Entity;
4
5
use Dtc\QueueBundle\Model\JobTiming as BaseJobTiming;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity
10
 * @ORM\Table(name="dtc_queue_job_timing", indexes={@ORM\Index(name="job_timing_finished_at", columns={"status", "finished_at"})})
11
 */
12
class JobTiming extends BaseJobTiming
13
{
14
    /**
15
     * @ORM\Column(type="bigint")
16
     * @ORM\Id
17
     * @ORM\GeneratedValue(strategy="AUTO")
18
     */
19
    protected $id;
20
21
    /**
22
     * @ORM\Column(type="datetime")
23
     */
24
    protected $finishedAt;
25
26
    /**
27
     * @ORM\Column(type="integer")
28
     */
29
    protected $status;
30
31
    /**
32
     * @return mixed
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    /**
40
     * @param mixed $id
41
     */
42
    public function setId($id)
43
    {
44
        $this->id = $id;
45
    }
46
}
47