Completed
Push — ws-security ( defbc5...87c9bd )
by Asmir
86:42 queued 56:41
created

TimestampType   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 155
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 11
lcom 1
cbo 0
dl 0
loc 155
rs 10
c 0
b 0
f 0

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getCreated() 0 4 1
A setCreated() 0 5 1
A getExpires() 0 4 1
A setExpires() 0 5 1
A addToAnyElement() 0 5 1
A issetAnyElement() 0 4 1
A unsetAnyElement() 0 4 1
A getAnyElement() 0 4 1
A setAnyElement() 0 5 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility;
4
5
/**
6
 * Class representing TimestampType
7
 *
8
 * This complex type ties together the timestamp related elements into a composite
9
 * type.
10
 * XSD Type: TimestampType
11
 */
12
class TimestampType
13
{
14
15
    /**
16
     * @property string $id
17
     */
18
    private $id = null;
19
20
    /**
21
     * @property
22
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Created
23
     * $created
24
     */
25
    private $created = null;
26
27
    /**
28
     * @property
29
     * \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Expires
30
     * $expires
31
     */
32
    private $expires = null;
33
34
    /**
35
     * @property mixed[] $anyElement
36
     */
37
    private $anyElement = array(
38
        
39
    );
40
41
    /**
42
     * Gets as id
43
     *
44
     * @return string
45
     */
46
    public function getId()
47
    {
48
        return $this->id;
49
    }
50
51
    /**
52
     * Sets a new id
53
     *
54
     * @param string $id
55
     * @return self
56
     */
57
    public function setId($id)
58
    {
59
        $this->id = $id;
60
        return $this;
61
    }
62
63
    /**
64
     * Gets as created
65
     *
66
     * @return \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Created
67
     */
68
    public function getCreated()
69
    {
70
        return $this->created;
71
    }
72
73
    /**
74
     * Sets a new created
75
     *
76
     * @param \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Created
77
     * $created
78
     * @return self
79
     */
80
    public function setCreated(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Created $created)
81
    {
82
        $this->created = $created;
83
        return $this;
84
    }
85
86
    /**
87
     * Gets as expires
88
     *
89
     * @return \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Expires
90
     */
91
    public function getExpires()
92
    {
93
        return $this->expires;
94
    }
95
96
    /**
97
     * Sets a new expires
98
     *
99
     * @param \GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Expires
100
     * $expires
101
     * @return self
102
     */
103
    public function setExpires(\GoetasWebservices\SoapServices\SoapClient\WssWsSecurity\Utility\Expires $expires)
104
    {
105
        $this->expires = $expires;
106
        return $this;
107
    }
108
109
    /**
110
     * Adds as array
111
     *
112
     * @return self
113
     * @param mixed $array
114
     */
115
    public function addToAnyElement($array)
116
    {
117
        $this->anyElement[] = $array;
118
        return $this;
119
    }
120
121
    /**
122
     * isset anyElement
123
     *
124
     * @param scalar $index
125
     * @return boolean
126
     */
127
    public function issetAnyElement($index)
128
    {
129
        return isset($this->anyElement[$index]);
130
    }
131
132
    /**
133
     * unset anyElement
134
     *
135
     * @param scalar $index
136
     * @return void
137
     */
138
    public function unsetAnyElement($index)
139
    {
140
        unset($this->anyElement[$index]);
141
    }
142
143
    /**
144
     * Gets as anyElement
145
     *
146
     * @return mixed[]
147
     */
148
    public function getAnyElement()
149
    {
150
        return $this->anyElement;
151
    }
152
153
    /**
154
     * Sets a new anyElement
155
     *
156
     * @param mixed[] $anyElement
157
     * @return self
158
     */
159
    public function setAnyElement(array $anyElement)
160
    {
161
        $this->anyElement = $anyElement;
162
        return $this;
163
    }
164
165
166
}
167
168