Completed
Push — master ( b73efb...175f05 )
by Bukashk0zzz
03:39
created

OfferSimple::setDelivery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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 OfferSimple
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
class OfferSimple extends AbstractOffer
20
{
21
    /**
22
     * @var string
23
     */
24
    private $name;
25
26
    /**
27
     * @var string
28
     */
29
    private $vendor;
30
31
    /**
32
     * @var string
33
     */
34
    private $vendorCode;
35
36
    /**
37
     * @return array
38
     */
39 View Code Duplication
    public function toArray()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
40
    {
41
        return array_merge($this->getHeaderOptions(), [
42
            'name' => $this->getName(),
43
            'vendor' => $this->getVendor(),
44
            'vendorCode' => $this->getVendorCode(),
45
        ], $this->getFooterOptions());
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getType()
52
    {
53
        return null;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getName()
60
    {
61
        return $this->name;
62
    }
63
64
    /**
65
     * @param string $name
66
     * @return $this
67
     */
68
    public function setName($name)
69
    {
70
        $this->name = $name;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getVendor()
79
    {
80
        return $this->vendor;
81
    }
82
83
    /**
84
     * @param string $vendor
85
     * @return $this
86
     */
87
    public function setVendor($vendor)
88
    {
89
        $this->vendor = $vendor;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @return string
96
     */
97
    public function getVendorCode()
98
    {
99
        return $this->vendorCode;
100
    }
101
102
    /**
103
     * @param string $vendorCode
104
     * @return $this
105
     */
106
    public function setVendorCode($vendorCode)
107
    {
108
        $this->vendorCode = $vendorCode;
109
110
        return $this;
111
    }
112
}
113