Job::getRecipient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Messenger\Sms;
4
5
use Cronario\AbstractJob;
6
7
class Job extends AbstractJob
8
{
9
10
    const P_PARAM_RECIPIENT = 'recipient';
11
    const P_PARAM_SENDER = 'sender';
12
    const P_PARAM_TEXT = 'text';
13
14
    /**
15
     * @return int|null|string
16
     */
17 9
    public function getRecipient()
18
    {
19 9
        return $this->getParam(self::P_PARAM_RECIPIENT);
20
    }
21
22
    /**
23
     * @param $value
24
     *
25
     * @return $this
26
     */
27 9
    public function setRecipient($value)
28
    {
29 9
        return $this->setParam(self::P_PARAM_RECIPIENT, $value);
30
    }
31
32
    /**
33
     * @return int|null|string
34
     */
35 7
    public function getSender()
36
    {
37 7
        return $this->getParam(self::P_PARAM_SENDER);
38
    }
39
40
    /**
41
     * @param $value
42
     *
43
     * @return $this
44
     */
45 9
    public function setSender($value)
46
    {
47 9
        return $this->setParam(self::P_PARAM_SENDER, $value);
48
    }
49
50
    /**
51
     * @return int|null|string
52
     */
53 7
    public function getText()
54
    {
55 7
        return $this->getParam(self::P_PARAM_TEXT);
56
    }
57
58
    /**
59
     * @param $value
60
     *
61
     * @return $this
62
     */
63 9
    public function setText($value)
64
    {
65 9
        return $this->setParam(self::P_PARAM_TEXT, $value);
66
    }
67
68
69
}