Completed
Push — master ( 6c3722...239355 )
by Matthew
19:49 queued 17:50
created

Job   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setBeanJob() 0 4 1
A getTtr() 0 4 1
A getBeanJob() 0 4 1
A setTtr() 0 4 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
    public function getBeanJob()
17
    {
18
        return $this->beanJob;
19
    }
20
21
    /**
22
     * @param mixed $beanJob
23
     */
24 4
    public function setBeanJob($beanJob)
25
    {
26 4
        $this->beanJob = $beanJob;
27 4
    }
28
29 4
    public function getTtr()
30
    {
31 4
        return $this->ttr;
32
    }
33
34
    /**
35
     * @param $ttr
36
     */
37
    public function setTtr($ttr)
38
    {
39
        $this->ttr = $ttr;
40
    }
41
}
42