Passed
Push — master ( 583371...613693 )
by Alex
03:44
created

setModificationFunctionMapping()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\mapping\cs;
4
5
/**
6
 * Class representing TEntityTypeMappingType
7
 *
8
 *
9
 * XSD Type: TEntityTypeMapping
10
 */
11 View Code Duplication
class TEntityTypeMappingType
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
12
{
13
14
    /**
15
     * @property string $typeName
16
     */
17
    private $typeName = null;
18
19
    /**
20
     * @property \MetadataV3\mapping\cs\TMappingFragmentType[] $mappingFragment
21
     */
22
    private $mappingFragment = array(
23
        
24
    );
25
26
    /**
27
     * @property \MetadataV3\mapping\cs\TEntityTypeModificationFunctionMappingType
28
     * $modificationFunctionMapping
29
     */
30
    private $modificationFunctionMapping = null;
31
32
    /**
33
     * Gets as typeName
34
     *
35
     * @return string
36
     */
37
    public function getTypeName()
38
    {
39
        return $this->typeName;
40
    }
41
42
    /**
43
     * Sets a new typeName
44
     *
45
     * @param string $typeName
46
     * @return self
47
     */
48
    public function setTypeName($typeName)
49
    {
50
        $this->typeName = $typeName;
51
        return $this;
52
    }
53
54
    /**
55
     * Adds as mappingFragment
56
     *
57
     * @return self
58
     * @param \MetadataV3\mapping\cs\TMappingFragmentType $mappingFragment
59
     */
60
    public function addToMappingFragment(\MetadataV3\mapping\cs\TMappingFragmentType $mappingFragment)
61
    {
62
        $this->mappingFragment[] = $mappingFragment;
63
        return $this;
64
    }
65
66
    /**
67
     * isset mappingFragment
68
     *
69
     * @param scalar $index
70
     * @return boolean
71
     */
72
    public function issetMappingFragment($index)
73
    {
74
        return isset($this->mappingFragment[$index]);
75
    }
76
77
    /**
78
     * unset mappingFragment
79
     *
80
     * @param scalar $index
81
     * @return void
82
     */
83
    public function unsetMappingFragment($index)
84
    {
85
        unset($this->mappingFragment[$index]);
86
    }
87
88
    /**
89
     * Gets as mappingFragment
90
     *
91
     * @return \MetadataV3\mapping\cs\TMappingFragmentType[]
92
     */
93
    public function getMappingFragment()
94
    {
95
        return $this->mappingFragment;
96
    }
97
98
    /**
99
     * Sets a new mappingFragment
100
     *
101
     * @param \MetadataV3\mapping\cs\TMappingFragmentType[] $mappingFragment
102
     * @return self
103
     */
104
    public function setMappingFragment(array $mappingFragment)
105
    {
106
        $this->mappingFragment = $mappingFragment;
107
        return $this;
108
    }
109
110
    /**
111
     * Gets as modificationFunctionMapping
112
     *
113
     * @return \MetadataV3\mapping\cs\TEntityTypeModificationFunctionMappingType
114
     */
115
    public function getModificationFunctionMapping()
116
    {
117
        return $this->modificationFunctionMapping;
118
    }
119
120
    /**
121
     * Sets a new modificationFunctionMapping
122
     *
123
     * @param \MetadataV3\mapping\cs\TEntityTypeModificationFunctionMappingType
124
     * $modificationFunctionMapping
125
     * @return self
126
     */
127
    public function setModificationFunctionMapping(\MetadataV3\mapping\cs\TEntityTypeModificationFunctionMappingType $modificationFunctionMapping)
128
    {
129
        $this->modificationFunctionMapping = $modificationFunctionMapping;
130
        return $this;
131
    }
132
}
133