Issues (453)

SoapTypes/GeneratePdfCustomsDocumentsRequest.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 GeneratePdfCustomsDocumentsRequest 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 int
21
     */
22
    protected $webshop = null;
23
24
    /**
25
     * @var orderType
26
     */
27
    protected $order = null;
28
29
    /**
30
     * Constructor.
31
     *
32
     * @var int
33
     * @var orderType[] $orders
34
     *
35
     * @param mixed $webshop
36
     */
37
    public function __construct($webshop, array $orders)
38
    {
39
        $this->webshop = $webshop;
40
        $this->order = $orders;
41
    }
42
43
    /**
44
     * @return int
45
     */
46
    public function getWebshop()
47
    {
48
        return $this->webshop;
49
    }
50
51
    /**
52
     * @param int $webshop
53
     *
54
     * @return $this
55
     */
56
    public function setWebshop($webshop)
57
    {
58
        $this->webshop = $webshop;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @return orderType
65
     */
66
    public function getOrders()
67
    {
68
        return $this->order;
69
    }
70
71
    /**
72
     * @param orderType[] $orders
73
     *
74
     * @return $this
75
     */
76
    public function setOrders($orders)
77
    {
78
        $this->order = $orders;
79
80
        return $this;
81
    }
82
}
83