Completed
Push — master ( eec90d...2946e6 )
by Dmitriy
11s
created

GetOrdersResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 20%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 58
ccs 2
cts 10
cp 0.2
rs 10
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPager() 0 4 1
A setPager() 0 5 1
A getOrders() 0 4 1
A setOrders() 0 5 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Market\Partner\Models\Pager;
6
use Yandex\Market\Partner\Models\Orders;
7
use Yandex\Common\Model;
8
9
class GetOrdersResponse extends Model
10
{
11
12
    protected $pager = null;
13
14
    protected $orders = null;
15
16
    protected $mappingClasses = [
17
        'pager' => 'Yandex\Market\Partner\Models\Pager',
18
        'orders' => 'Yandex\Market\Partner\Models\Orders'
19
    ];
20
21
    protected $propNameMap = [];
22
23
    /**
24
     * Retrieve the pager property
25
     *
26
     * @return Pager|null
27
     */
28
    public function getPager()
29
    {
30
        return $this->pager;
31
    }
32
33
    /**
34
     * Set the pager property
35
     *
36
     * @param Pager $pager
37
     * @return $this
38
     */
39
    public function setPager($pager)
40
    {
41
        $this->pager = $pager;
42
        return $this;
43
    }
44
45
    /**
46
     * Retrieve the orders property
47
     *
48
     * @return Orders|null
49
     */
50 1
    public function getOrders()
51
    {
52 1
        return $this->orders;
53
    }
54
55
    /**
56
     * Set the orders property
57
     *
58
     * @param Orders $orders
59
     * @return $this
60
     */
61
    public function setOrders($orders)
62
    {
63
        $this->orders = $orders;
64
        return $this;
65
    }
66
}
67