Code Duplication    Length = 9-9 lines in 2 locations

src/MetadataV3/edm/Groups/TFunctionImportAttributesTrait.php 1 location

@@ 161-169 (lines=9) @@
158
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType $entitySet
159
     * @return self
160
     */
161
    public function setEntitySet(TOperandType $entitySet)
162
    {
163
        $msg = null;
164
        if (!$entitySet->isOK($msg)) {
165
            throw new \InvalidArgumentException($msg);
166
        }
167
        $this->entitySet = $entitySet;
168
        return $this;
169
    }
170
171
    /**
172
     * Gets as isComposable

src/MetadataV3/edm/TFunctionImportReturnTypeType.php 1 location

@@ 80-88 (lines=9) @@
77
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType $entitySet
78
     * @return self
79
     */
80
    public function setEntitySet(TOperandType $entitySet)
81
    {
82
        $msg = null;
83
        if (!$entitySet->isOK($msg)) {
84
            throw new \InvalidArgumentException($msg);
85
        }
86
        $this->entitySet = $entitySet;
87
        return $this;
88
    }
89
90
    /**
91
     * Gets as entitySetAttribute