Code Duplication    Length = 9-13 lines in 2 locations

src/MetadataV3/edm/ssdl/TFunctionType.php 2 locations

@@ 117-125 (lines=9) @@
114
     * @return self
115
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType $returnType
116
     */
117
    public function addToReturnType(TFunctionReturnTypeType $returnType)
118
    {
119
        $msg = null;
120
        if (!$returnType->isOK($msg)) {
121
            throw new \InvalidArgumentException($msg);
122
        }
123
        $this->returnType[] = $returnType;
124
        return $this;
125
    }
126
127
    /**
128
     * isset returnType
@@ 165-177 (lines=13) @@
162
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType[] $returnType
163
     * @return self
164
     */
165
    public function setReturnType(array $returnType)
166
    {
167
        $msg = null;
168
        if (!$this->isValidArrayOK(
169
            $returnType,
170
            '\AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TFunctionReturnTypeType',
171
            $msg
172
        )) {
173
            throw new \InvalidArgumentException($msg);
174
        }
175
        $this->returnType = $returnType;
176
        return $this;
177
    }
178
179
    /**
180
     * Gets as aggregate