OfferCustom::getModel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Class OfferCustom
16
 */
17
class OfferCustom extends AbstractOffer implements OfferGroupAwareInterface
18
{
19
    use OfferGroupTrait;
20
21
    /**
22
     * @var string
23
     */
24
    private $typePrefix;
25
26
    /**
27
     * @var string
28
     */
29
    private $vendor;
30
31
    /**
32
     * @var string
33
     */
34
    private $vendorCode;
35
36
    /**
37
     * @var string
38
     */
39
    private $model;
40
41
    /**
42
     * @return string
43
     */
44
    public function getType()
45
    {
46
        return 'vendor.model';
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getTypePrefix()
53
    {
54
        return $this->typePrefix;
55
    }
56
57
    /**
58
     * @param string $typePrefix
59
     *
60
     * @return $this
61
     */
62
    public function setTypePrefix($typePrefix)
63
    {
64
        $this->typePrefix = $typePrefix;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getModel()
73
    {
74
        return $this->model;
75
    }
76
77
    /**
78
     * @param string $model
79
     *
80
     * @return $this
81
     */
82
    public function setModel($model)
83
    {
84
        $this->model = $model;
85
86
        return $this;
87
    }
88
89
    /**
90
     * @return string
91
     */
92
    public function getVendor()
93
    {
94
        return $this->vendor;
95
    }
96
97
    /**
98
     * @param string $vendor
99
     *
100
     * @return $this
101
     */
102
    public function setVendor($vendor)
103
    {
104
        $this->vendor = $vendor;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getVendorCode()
113
    {
114
        return $this->vendorCode;
115
    }
116
117
    /**
118
     * @param string $vendorCode
119
     *
120
     * @return $this
121
     */
122
    public function setVendorCode($vendorCode)
123
    {
124
        $this->vendorCode = $vendorCode;
125
126
        return $this;
127
    }
128
129
    /**
130
     * @return array
131
     */
132
    protected function getOptions()
133
    {
134
        return [
135
            'typePrefix' => $this->getTypePrefix(),
136
            'vendor' => $this->getVendor(),
137
            'vendorCode' => $this->getVendorCode(),
138
            'model' => $this->getModel(),
139
        ];
140
    }
141
}
142