Completed
Push — master ( 8f1815...8f409a )
by Antonio
02:27
created

BeanstalkdMailJob   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTimeToSend() 0 4 1
A setTimeToSend() 0 4 1
A setPheanstalkJob() 0 4 1
A getPheanstalkJob() 0 4 1
1
<?php
2
namespace Da\Mailer\Queue\Backend\Beanstalkd;
3
4
use Da\Mailer\Model\MailJob;
5
use Pheanstalk\Job as PheanstalkJob;
6
7
class BeanstalkdMailJob extends MailJob
8
{
9
    /**
10
     * @var int the unix timestamp the job should be processed
11
     */
12
    private $timeToSend;
13
    /**
14
     * @var PheanstalkJob
15
     */
16
    private $pheanstalkJob;
17
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