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

GetBalanceResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 40%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 24
ccs 2
cts 5
cp 0.4
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBalance() 0 4 1
A setBalance() 0 4 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class GetBalanceResponse extends Model
8
{
9
    protected $balance = null;
10
11
    protected $mappingClasses = [
12
        'balance' => 'Yandex\Market\Partner\Models\Balance'
13
    ];
14
15
    /**
16
     * @return null
17
     */
18 1
    public function getBalance()
19
    {
20 1
        return $this->balance;
21
    }
22
23
    /**
24
     * @param null $balance
25
     */
26
    public function setBalance($balance)
27
    {
28
        $this->balance = $balance;
29
    }
30
}
31