Boleto::getOurNumber()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Getnet\API;
3
4
/**
5
 * Class Boleto
6
 *
7
 * @package Getnet\API
8
 */
9
class Boleto implements \JsonSerializable
10
{
11
    const PROVIDER_SANTANDER = "santander";
12
13
    /** @var */
14
    private $our_number;
15
16
    /** @var */
17
    private $document_number;
18
19
    /** @var */
20
    private $expiration_date;
21
22
    /** @var */
23
    private $instructions;
24
25
    /** @var */
26
    private $provider;
27
28
    /**
29
     * Boleto constructor.
30
     * @param $our_number
31
     */
32
    public function __construct($our_number)
33
    {
34
        $this->our_number = $our_number;
35
    }
36
37
    /**
38
     * @return array|mixed
39
     */
40
    public function jsonSerialize()
41
    {
42
        return get_object_vars($this);
43
    }
44
45
    /**
46
     *
47
     * @return mixed
48
     */
49
    public function getOurNumber()
50
    {
51
        return $this->our_number;
52
    }
53
54
    /**
55
     * @param $our_number
56
     * @return $this
57
     */
58
    public function setOurNumber($our_number)
59
    {
60
        $this->our_number = (string)$our_number;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getDocumentNumber()
69
    {
70
        return $this->document_number;
71
    }
72
73
    /**
74
     *
75
     * @param mixed $document_number
76
     * @return Boleto
77
     */
78
    public function setDocumentNumber($document_number)
79
    {
80
        $this->document_number = (string)$document_number;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @return mixed
87
     */
88
    public function getExpirationDate()
89
    {
90
        return $this->expiration_date;
91
    }
92
93
    /**
94
     * @param $expiration_date
95
     * @return $this
96
     */
97
    public function setExpirationDate($expiration_date)
98
    {
99
        $this->expiration_date = (string)$expiration_date;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @return mixed
106
     */
107
    public function getInstructions()
108
    {
109
        return $this->instructions;
110
    }
111
112
    /**
113
     * @param $instructions
114
     * @return $this
115
     */
116
    public function setInstructions($instructions)
117
    {
118
        $this->instructions = (string)$instructions;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @return mixed
125
     */
126
    public function getProvider()
127
    {
128
        return $this->provider;
129
    }
130
131
    /**
132
     * @param mixed $provider
133
     * @return Boleto
134
     */
135
    public function setProvider($provider)
136
    {
137
        $this->provider = (string)$provider;
138
139
        return $this;
140
    }
141
}
142