Completed
Push — master ( 82c5ce...5035b6 )
by Dmitriy
6s
created

PostCartResponse::getCart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Market\Partner\Models\CartResponse;
6
use Yandex\Common\Model;
7
8
class PostCartResponse extends Model
9
{
10
11
    protected $cart = null;
12
13
    protected $mappingClasses = [
14
        'cart' => 'Yandex\Market\Partner\Models\CartResponse'
15
    ];
16
17
    protected $propNameMap = [];
18
19
    /**
20
     * Retrieve the cart property
21
     *
22
     * @return CartResponse|null
23
     */
24
    public function getCart()
25
    {
26
        return $this->cart;
27
    }
28
29
    /**
30
     * Set the cart property
31
     *
32
     * @param CartResponse $cart
33
     * @return $this
34
     */
35 1
    public function setCart($cart)
36
    {
37 1
        $this->cart = $cart;
38 1
        return $this;
39
    }
40
}
41