BeanstalkdMailJob::getPheanstalkJob()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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