Issues (453)

src/SoapTypes/BaseCheckoutRequestType.php (1 issue)

1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz RumiƄski <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\PaazlConnector\SoapTypes;
14
15
use Phpro\SoapClient\Type\RequestInterface;
16
17 View Code Duplication
class BaseCheckoutRequestType implements RequestInterface
0 ignored issues
show
This class 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...
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $hash = null;
23
24
    /**
25
     * @var int
26
     */
27
    protected $webshop = null;
28
29
    /**
30
     * @var int
31
     */
32
    protected $targetWebshop = null;
33
34
    /**
35
     * @var string
36
     */
37
    protected $orderReference = null;
38
39
    /**
40
     * Constructor.
41
     *
42
     * @var string
43
     * @var int    $webshop
44
     * @var int    $targetWebshop
45
     * @var string $orderReference
46
     *
47
     * @param mixed $hash
48
     * @param mixed $webshop
49
     * @param mixed $targetWebshop
50
     * @param mixed $orderReference
51
     */
52
    public function __construct($hash, $webshop, $targetWebshop, $orderReference)
53
    {
54
        $this->hash = $hash;
55
        $this->webshop = $webshop;
56
        $this->targetWebshop = $targetWebshop;
57
        $this->orderReference = $orderReference;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getHash()
64
    {
65
        return $this->hash;
66
    }
67
68
    /**
69
     * @param string $hash
70
     *
71
     * @return $this
72
     */
73
    public function setHash($hash)
74
    {
75
        $this->hash = $hash;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @return int
82
     */
83
    public function getWebshop()
84
    {
85
        return $this->webshop;
86
    }
87
88
    /**
89
     * @param int $webshop
90
     *
91
     * @return $this
92
     */
93
    public function setWebshop($webshop)
94
    {
95
        $this->webshop = $webshop;
96
97
        return $this;
98
    }
99
100
    /**
101
     * @return int
102
     */
103
    public function getTargetWebshop()
104
    {
105
        return $this->targetWebshop;
106
    }
107
108
    /**
109
     * @param int $targetWebshop
110
     *
111
     * @return $this
112
     */
113
    public function setTargetWebshop($targetWebshop)
114
    {
115
        $this->targetWebshop = $targetWebshop;
116
117
        return $this;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getOrderReference()
124
    {
125
        return $this->orderReference;
126
    }
127
128
    /**
129
     * @param string $orderReference
130
     *
131
     * @return $this
132
     */
133
    public function setOrderReference($orderReference)
134
    {
135
        $this->orderReference = $orderReference;
136
137
        return $this;
138
    }
139
}
140