Code Duplication    Length = 66-67 lines in 2 locations

src/SoapTypes/GeneratePdfCustomsDocumentsRequest.php 1 location

@@ 17-82 (lines=66) @@
14
15
use Phpro\SoapClient\Type\RequestInterface;
16
17
class GeneratePdfCustomsDocumentsRequest implements RequestInterface
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

src/SoapTypes/GenerateReturnLabelsType.php 1 location

@@ 15-81 (lines=67) @@
12
13
namespace Etrias\PaazlConnector\SoapTypes;
14
15
class GenerateReturnLabelsType
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $webshop = null;
21
22
    /**
23
     * @var returnLabelsOrderType[]
24
     */
25
    protected $order = null;
26
27
    /**
28
     * Constructor.
29
     *
30
     * @var int
31
     * @var returnLabelsOrderType[] $order
32
     *
33
     * @param mixed $webshop
34
     * @param mixed $order
35
     */
36
    public function __construct($webshop, $order)
37
    {
38
        $this->webshop = $webshop;
39
        $this->order = $order;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getWebshop()
46
    {
47
        return $this->webshop;
48
    }
49
50
    /**
51
     * @param int $webshop
52
     *
53
     * @return $this
54
     */
55
    public function setWebshop($webshop)
56
    {
57
        $this->webshop = $webshop;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @return returnLabelsOrderType[]
64
     */
65
    public function getOrders()
66
    {
67
        return $this->order;
68
    }
69
70
    /**
71
     * @param returnLabelsOrderType[] $order
72
     *
73
     * @return $this
74
     */
75
    public function setOrders($order)
76
    {
77
        $this->order = $order;
78
79
        return $this;
80
    }
81
}
82