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

PostCartResponse   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 33
ccs 3
cts 5
cp 0.6
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCart() 0 4 1
A setCart() 0 5 1
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