BeanstalkdMailJob   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 40
ccs 10
cts 10
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTimeToSend() 0 3 1
A setTimeToSend() 0 3 1
A setPheanstalkJob() 0 3 1
A getPheanstalkJob() 0 3 1
1
<?php
2
3
namespace Da\Mailer\Queue\Backend\Beanstalkd;
4
5
use Da\Mailer\Model\MailJob;
6
use Pheanstalk\Job as PheanstalkJob;
7
8
class BeanstalkdMailJob extends MailJob
9
{
10
    /**
11
     * @var int the unix timestamp the job should be processed
12
     */
13
    private $timeToSend;
14
/**
15
     * @var PheanstalkJob
16
     */
17
    private $pheanstalkJob;
18
/**
19
     * @return int the timestamp
20
     */
21 3
    public function getTimeToSend()
22
    {
23 3
        return $this->timeToSend;
24
    }
25
26
    /**
27
     * @param int $timestamp
28
     */
29 1
    public function setTimeToSend($timestamp)
30
    {
31 1
        $this->timeToSend = $timestamp;
32 1
    }
33
34
    /**
35
     * @param PheanstalkJob $job
36
     */
37 3
    public function setPheanstalkJob(PheanstalkJob $job)
38
    {
39 3
        $this->pheanstalkJob = $job;
40 3
    }
41
42
    /**
43
     * @return PheanstalkJob
44
     */
45 3
    public function getPheanstalkJob()
46
    {
47 3
        return $this->pheanstalkJob;
48
    }
49
}
50