Completed
Push — master ( 836114...b3a960 )
by Matthew
08:40
created

JobTiming::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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 1
    public function getId()
35
    {
36 1
        return $this->id;
37
    }
38
39
    /**
40
     * @param mixed $id
41
     */
42 1
    public function setId($id)
43
    {
44 1
        $this->id = $id;
45 1
    }
46
}
47