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

ObjectType::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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