OrderBase::setParams()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace PimpayBundle\Model;
4
5
/**
6
 * Class OrderBase
7
 * @package PimpayBundle\Model
8
 */
9
class OrderBase
10
{
11
    /**
12
     * @var string|null
13
     */
14
    private $postId;
15
16
    /**
17
     * @var OrderParams
18
     */
19
    private $params;
20
21
    /**
22
     * @return string
23
     */
24
    public function getPostId(): string
25
    {
26
        return $this->postId;
27
    }
28
29
    /**
30
     * @param string|null $postId
31
     * @return $this
32
     */
33
    public function setPostId(string $postId = null)
34
    {
35
        $this->postId = $postId;
36
37
        return $this;
38
    }
39
40
    /**
41
     * @return OrderParams
42
     */
43
    public function getParams(): OrderParams
44
    {
45
        return $this->params;
46
    }
47
48
    /**
49
     * @param OrderParams $params
50
     * @return $this
51
     */
52
    public function setParams(OrderParams $params)
53
    {
54
        $this->params = $params;
55
56
        return $this;
57
    }
58
}
59