Completed
Pull Request — master (#188)
by
unknown
05:08
created

Balance   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 40%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 64
ccs 6
cts 15
cp 0.4
rs 10
wmc 6
lcom 0
cbo 1

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getBalance() 0 4 1
A setBalance() 0 5 1
A getDaysLeft() 0 4 1
A setDaysLeft() 0 5 1
A getRecommendedPayment() 0 4 1
A setRecommendedPayment() 0 5 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class Balance extends Model
8
{
9
    protected $balance = null;
10
11
    protected $daysLeft = null;
12
13
    protected $recommendedPayment = null;
14
15
    /**
16
     * Retrieve the balance property
17
     *
18
     * @return int|null
19
     */
20 1
    public function getBalance()
21
    {
22 1
        return $this->balance;
23
    }
24
25
    /**
26
     * Set the balance property
27
     *
28
     * @param int $balance
29
     * @return $this
30
     */
31
    public function setBalance($balance)
32
    {
33
        $this->balance = $balance;
34
        return $this;
35
    }
36
37
    /**
38
     * @return  int|null
39
     */
40 1
    public function getDaysLeft()
41
    {
42 1
        return $this->daysLeft;
43
    }
44
45
    /**
46
     *
47
     */
48
    public function setDaysLeft($daysLeft)
49
    {
50
        $this->daysLeft = $daysLeft;
51
        return $this;
52
    }
53
54
    /**
55
     * @return  int|null
56
     */
57 1
    public function getRecommendedPayment()
58
    {
59 1
        return $this->recommendedPayment;
60
    }
61
62
    /**
63
     *
64
     */
65
    public function setRecommendedPayment($recommendedPayment)
66
    {
67
        $this->recommendedPayment = $recommendedPayment;
68
        return $this;
69
    }
70
}
71