Completed
Push — master ( 239355...d39289 )
by Matthew
05:26
created

Job::setTtr()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Dtc\QueueBundle\Beanstalkd;
4
5
use Dtc\QueueBundle\Model\MessageableJob;
6
7
class Job extends MessageableJob
8
{
9
    protected $beanJob;
10
11
    protected $ttr = 3600;
12
13
    /**
14
     * @return mixed
15
     */
16 1
    public function getBeanJob()
17
    {
18 1
        return $this->beanJob;
19
    }
20
21
    /**
22
     * @param mixed $beanJob
23
     */
24 6
    public function setBeanJob($beanJob)
25
    {
26 6
        $this->beanJob = $beanJob;
27 6
    }
28
29 6
    public function getTtr()
30
    {
31 6
        return $this->ttr;
32
    }
33
34
    /**
35
     * @param $ttr
36
     */
37 1
    public function setTtr($ttr)
38
    {
39 1
        $this->ttr = $ttr;
40 1
    }
41
}
42