Code Duplication    Length = 82-82 lines in 2 locations

src/Yandex/Market/Partner/Models/CartRequest.php 1 location

@@ 9-90 (lines=82) @@
6
use Yandex\Market\Partner\Models\Delivery;
7
use Yandex\Common\Model;
8
9
class CartRequest extends Model
10
{
11
12
    protected $currency = null;
13
14
    protected $items = null;
15
16
    protected $delivery = null;
17
18
    protected $mappingClasses = [
19
        'items' => 'Yandex\Market\Partner\Models\Items',
20
        'delivery' => 'Yandex\Market\Partner\Models\Delivery'
21
    ];
22
23
    protected $propNameMap = [];
24
25
    /**
26
     * Retrieve the currency property
27
     *
28
     * @return string|null
29
     */
30
    public function getCurrency()
31
    {
32
        return $this->currency;
33
    }
34
35
    /**
36
     * Set the currency property
37
     *
38
     * @param string $currency
39
     * @return $this
40
     */
41
    public function setCurrency($currency)
42
    {
43
        $this->currency = $currency;
44
        return $this;
45
    }
46
47
    /**
48
     * Retrieve the items property
49
     *
50
     * @return Items|null
51
     */
52
    public function getItems()
53
    {
54
        return $this->items;
55
    }
56
57
    /**
58
     * Set the items property
59
     *
60
     * @param Items $items
61
     * @return $this
62
     */
63
    public function setItems($items)
64
    {
65
        $this->items = $items;
66
        return $this;
67
    }
68
69
    /**
70
     * Retrieve the delivery property
71
     *
72
     * @return Delivery|null
73
     */
74
    public function getDelivery()
75
    {
76
        return $this->delivery;
77
    }
78
79
    /**
80
     * Set the delivery property
81
     *
82
     * @param Delivery $delivery
83
     * @return $this
84
     */
85
    public function setDelivery($delivery)
86
    {
87
        $this->delivery = $delivery;
88
        return $this;
89
    }
90
}
91

src/Yandex/Market/Partner/Models/CartResponse.php 1 location

@@ 9-90 (lines=82) @@
6
use Yandex\Market\Partner\Models\DeliveryOptions;
7
use Yandex\Common\Model;
8
9
class CartResponse extends Model
10
{
11
12
    protected $items = null;
13
14
    protected $deliveryOptions = null;
15
16
    protected $paymentMethods = null;
17
18
    protected $mappingClasses = [
19
        'items' => 'Yandex\Market\Partner\Models\Items',
20
        'deliveryOptions' => 'Yandex\Market\Partner\Models\DeliveryOptions'
21
    ];
22
23
    protected $propNameMap = [];
24
25
    /**
26
     * Retrieve the items property
27
     *
28
     * @return Items|null
29
     */
30
    public function getItems()
31
    {
32
        return $this->items;
33
    }
34
35
    /**
36
     * Set the items property
37
     *
38
     * @param Items $items
39
     * @return $this
40
     */
41
    public function setItems($items)
42
    {
43
        $this->items = $items;
44
        return $this;
45
    }
46
47
    /**
48
     * Retrieve the deliveryOptions property
49
     *
50
     * @return DeliveryOptions|null
51
     */
52
    public function getDeliveryOptions()
53
    {
54
        return $this->deliveryOptions;
55
    }
56
57
    /**
58
     * Set the deliveryOptions property
59
     *
60
     * @param DeliveryOptions $deliveryOptions
61
     * @return $this
62
     */
63
    public function setDeliveryOptions($deliveryOptions)
64
    {
65
        $this->deliveryOptions = $deliveryOptions;
66
        return $this;
67
    }
68
69
    /**
70
     * Retrieve the paymentMethods property
71
     *
72
     * @return array|null
73
     */
74
    public function getPaymentMethods()
75
    {
76
        return $this->paymentMethods;
77
    }
78
79
    /**
80
     * Set the paymentMethods property
81
     *
82
     * @param array $paymentMethods
83
     * @return $this
84
     */
85
    public function setPaymentMethods($paymentMethods)
86
    {
87
        $this->paymentMethods = $paymentMethods;
88
        return $this;
89
    }
90
}
91