SaphOrderReady   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 156
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 0
Metric Value
wmc 13
lcom 2
cbo 1
dl 0
loc 156
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getPassKey() 0 4 1
A setPassKey() 0 10 3
A getRefId() 0 4 1
A setRefId() 0 10 3
A getOrderLineItems() 0 4 1
A setOrderLineItems() 0 6 1
A __set_state() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Smsa WebService package.
5
 * (c) Hamoud Alhoqbani <[email protected]>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Alhoqbani\SmsaWebService\Soap\Type;
11
12
use \WsdlToPhp\PackageBase\AbstractStructBase;
13
14
/**
15
 * This class stands for saphOrderReady Type
16
 *
17
 * @date 2018/04/06
18
 * @codeVersion 0.0.1
19
 */
20
class SaphOrderReady extends AbstractStructBase
21
{
22
    /**
23
     * The passKey
24
     * Meta informations extracted from the WSDL
25
     * - maxOccurs: 1
26
     * - minOccurs: 0
27
     *
28
     * @var string
29
     */
30
    public $passKey;
31
    /**
32
     * The refId
33
     * Meta informations extracted from the WSDL
34
     * - maxOccurs: 1
35
     * - minOccurs: 0
36
     *
37
     * @var string
38
     */
39
    public $refId;
40
    /**
41
     * The orderLineItems
42
     * Meta informations extracted from the WSDL
43
     * - maxOccurs: 1
44
     * - minOccurs: 0
45
     *
46
     * @var \Alhoqbani\SmsaWebService\Soap\Type\ArrayOfOrderLineItem
47
     */
48
    public $orderLineItems;
49
50
    /**
51
     * Constructor method for saphOrderReady
52
     *
53
     * @uses SaphOrderReady::setPassKey()
54
     * @uses SaphOrderReady::setRefId()
55
     * @uses SaphOrderReady::setOrderLineItems()
56
     *
57
     * @param string                                                   $passKey
58
     * @param string                                                   $refId
59
     * @param \Alhoqbani\SmsaWebService\Soap\Type\ArrayOfOrderLineItem $orderLineItems
60
     */
61
    public function __construct($passKey = null, $refId = null, \Alhoqbani\SmsaWebService\Soap\Type\ArrayOfOrderLineItem $orderLineItems = null)
62
    {
63
        $this
64
            ->setPassKey($passKey)
65
            ->setRefId($refId)
66
            ->setOrderLineItems($orderLineItems);
67
    }
68
69
    /**
70
     * Get passKey value
71
     *
72
     * @return string|null
73
     */
74
    public function getPassKey()
75
    {
76
        return $this->passKey;
77
    }
78
79
    /**
80
     * Set passKey value
81
     *
82
     * @param string $passKey
83
     *
84
     * @return \Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReady
85
     */
86
    public function setPassKey($passKey = null)
87
    {
88
        // validation for constraint: string
89
        if (!is_null($passKey) && !is_string($passKey)) {
90
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($passKey)), __LINE__);
91
        }
92
        $this->passKey = $passKey;
93
94
        return $this;
95
    }
96
97
    /**
98
     * Get refId value
99
     *
100
     * @return string|null
101
     */
102
    public function getRefId()
103
    {
104
        return $this->refId;
105
    }
106
107
    /**
108
     * Set refId value
109
     *
110
     * @param string $refId
111
     *
112
     * @return \Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReady
113
     */
114
    public function setRefId($refId = null)
115
    {
116
        // validation for constraint: string
117
        if (!is_null($refId) && !is_string($refId)) {
118
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($refId)), __LINE__);
119
        }
120
        $this->refId = $refId;
121
122
        return $this;
123
    }
124
125
    /**
126
     * Get orderLineItems value
127
     *
128
     * @return \Alhoqbani\SmsaWebService\Soap\Type\ArrayOfOrderLineItem|null
129
     */
130
    public function getOrderLineItems()
131
    {
132
        return $this->orderLineItems;
133
    }
134
135
    /**
136
     * Set orderLineItems value
137
     *
138
     * @param \Alhoqbani\SmsaWebService\Soap\Type\ArrayOfOrderLineItem $orderLineItems
139
     *
140
     * @return \Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReady
141
     */
142
    public function setOrderLineItems(\Alhoqbani\SmsaWebService\Soap\Type\ArrayOfOrderLineItem $orderLineItems = null)
143
    {
144
        $this->orderLineItems = $orderLineItems;
145
146
        return $this;
147
    }
148
149
    /**
150
     * Method called when an object has been exported with var_export() functions
151
     * It allows to return an object instantiated with the values
152
     *
153
     * @see AbstractStructBase::__set_state()
154
     *
155
     * @uses AbstractStructBase::__set_state()
156
     *
157
     * @param array $array the exported values
158
     *
159
     * @return \Alhoqbani\SmsaWebService\Soap\Type\SaphOrderReady
160
     */
161
    public static function __set_state(array $array)
162
    {
163
        return parent::__set_state($array);
164
    }
165
166
    /**
167
     * Method returning the class name
168
     *
169
     * @return string __CLASS__
170
     */
171
    public function __toString()
172
    {
173
        return __CLASS__;
174
    }
175
}
176