Completed
Push — develop ( e2d101...8d74c2 )
by Mikaël
31:41
created

EwsFieldURIOrConstantType::setFieldURI()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Ews\StructType;
4
5
use \WsdlToPhp\PackageBase\AbstractStructBase;
6
7
/**
8
 * This class stands for FieldURIOrConstantType StructType
9
 * @package Ews
10
 * @subpackage Structs
11
 * @author WsdlToPhp <[email protected]>
12
 */
13
class EwsFieldURIOrConstantType extends AbstractStructBase
14
{
15
    /**
16
     * The Constant
17
     * @var \Ews\StructType\EwsConstantValueType
18
     */
19
    public $Constant;
20
    /**
21
     * The FieldURI
22
     * @var \Ews\StructType\EwsPathToUnindexedFieldType
23
     */
24
    public $FieldURI;
25
    /**
26
     * The IndexedFieldURI
27
     * @var \Ews\StructType\EwsPathToIndexedFieldType
28
     */
29
    public $IndexedFieldURI;
30
    /**
31
     * The ExtendedFieldURI
32
     * @var \Ews\StructType\EwsPathToExtendedFieldType
33
     */
34
    public $ExtendedFieldURI;
35
    /**
36
     * Constructor method for FieldURIOrConstantType
37
     * @uses EwsFieldURIOrConstantType::setConstant()
38
     * @uses EwsFieldURIOrConstantType::setFieldURI()
39
     * @uses EwsFieldURIOrConstantType::setIndexedFieldURI()
40
     * @uses EwsFieldURIOrConstantType::setExtendedFieldURI()
41
     * @param \Ews\StructType\EwsConstantValueType $constant
42
     * @param \Ews\StructType\EwsPathToUnindexedFieldType $fieldURI
43
     * @param \Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI
44
     * @param \Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI
45
     */
46
    public function __construct(\Ews\StructType\EwsConstantValueType $constant = null, \Ews\StructType\EwsPathToUnindexedFieldType $fieldURI = null, \Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI = null, \Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI = null)
47
    {
48
        $this
49
            ->setConstant($constant)
50
            ->setFieldURI($fieldURI)
51
            ->setIndexedFieldURI($indexedFieldURI)
52
            ->setExtendedFieldURI($extendedFieldURI);
53
    }
54
    /**
55
     * Get Constant value
56
     * @return \Ews\StructType\EwsConstantValueType|null
57
     */
58
    public function getConstant()
59
    {
60
        return $this->Constant;
61
    }
62
    /**
63
     * Set Constant value
64
     * @param \Ews\StructType\EwsConstantValueType $constant
65
     * @return \Ews\StructType\EwsFieldURIOrConstantType
66
     */
67
    public function setConstant(\Ews\StructType\EwsConstantValueType $constant = null)
68
    {
69
        $this->Constant = $constant;
70
        return $this;
71
    }
72
    /**
73
     * Get FieldURI value
74
     * @return \Ews\StructType\EwsPathToUnindexedFieldType|null
75
     */
76
    public function getFieldURI()
77
    {
78
        return $this->FieldURI;
79
    }
80
    /**
81
     * Set FieldURI value
82
     * @param \Ews\StructType\EwsPathToUnindexedFieldType $fieldURI
83
     * @return \Ews\StructType\EwsFieldURIOrConstantType
84
     */
85
    public function setFieldURI(\Ews\StructType\EwsPathToUnindexedFieldType $fieldURI = null)
86
    {
87
        $this->FieldURI = $fieldURI;
88
        return $this;
89
    }
90
    /**
91
     * Get IndexedFieldURI value
92
     * @return \Ews\StructType\EwsPathToIndexedFieldType|null
93
     */
94
    public function getIndexedFieldURI()
95
    {
96
        return $this->IndexedFieldURI;
97
    }
98
    /**
99
     * Set IndexedFieldURI value
100
     * @param \Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI
101
     * @return \Ews\StructType\EwsFieldURIOrConstantType
102
     */
103
    public function setIndexedFieldURI(\Ews\StructType\EwsPathToIndexedFieldType $indexedFieldURI = null)
104
    {
105
        $this->IndexedFieldURI = $indexedFieldURI;
106
        return $this;
107
    }
108
    /**
109
     * Get ExtendedFieldURI value
110
     * @return \Ews\StructType\EwsPathToExtendedFieldType|null
111
     */
112
    public function getExtendedFieldURI()
113
    {
114
        return $this->ExtendedFieldURI;
115
    }
116
    /**
117
     * Set ExtendedFieldURI value
118
     * @param \Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI
119
     * @return \Ews\StructType\EwsFieldURIOrConstantType
120
     */
121
    public function setExtendedFieldURI(\Ews\StructType\EwsPathToExtendedFieldType $extendedFieldURI = null)
122
    {
123
        $this->ExtendedFieldURI = $extendedFieldURI;
124
        return $this;
125
    }
126
    /**
127
     * Method called when an object has been exported with var_export() functions
128
     * It allows to return an object instantiated with the values
129
     * @see AbstractStructBase::__set_state()
130
     * @uses AbstractStructBase::__set_state()
131
     * @param array $array the exported values
132
     * @return \Ews\StructType\EwsFieldURIOrConstantType
133
     */
134
    public static function __set_state(array $array)
135
    {
136
        return parent::__set_state($array);
137
    }
138
    /**
139
     * Method returning the class name
140
     * @return string __CLASS__
141
     */
142
    public function __toString()
143
    {
144
        return __CLASS__;
145
    }
146
}
147