AcceptOrder::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class AcceptOrder extends Model
8
{
9
10
    protected $accepted = null;
11
12
    protected $id = null;
13
14
    protected $reason = null;
15
16
    protected $mappingClasses = [];
17
18
    protected $propNameMap = [];
19
20
    /**
21
     * Retrieve the accepted property
22
     *
23
     * @return boolean|null
24
     */
25
    public function getAccepted()
26
    {
27
        return $this->accepted;
28
    }
29
30
    /**
31
     * Set the accepted property
32
     *
33
     * @param boolean $accepted
34
     * @return $this
35
     */
36
    public function setAccepted($accepted)
37
    {
38
        $this->accepted = $accepted;
39
        return $this;
40
    }
41
42
    /**
43
     * Retrieve the id property
44
     *
45
     * @return string|null
46
     */
47
    public function getId()
48
    {
49
        return $this->id;
50
    }
51
52
    /**
53
     * Set the id property
54
     *
55
     * @param string $id
56
     * @return $this
57
     */
58
    public function setId($id)
59
    {
60
        $this->id = $id;
61
        return $this;
62
    }
63
64
    /**
65
     * Retrieve the reason property
66
     *
67
     * @return string|null
68
     */
69
    public function getReason()
70
    {
71
        return $this->reason;
72
    }
73
74
    /**
75
     * Set the reason property
76
     *
77
     * @param string $reason
78
     * @return $this
79
     */
80
    public function setReason($reason)
81
    {
82
        $this->reason = $reason;
83
        return $this;
84
    }
85
}
86