Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 264-273 (lines=10) @@
261
     * @param string $guid
262
     * @return self
263
     */
264
    public function setGuid($guid)
265
    {
266
        $msg = null;
267
        if (null != $guid && !$this->isTGuidLiteralValid($guid)) {
268
            $msg = "Guid must be a valid TGuidLiteral";
269
            throw new \InvalidArgumentException($msg);
270
        }
271
        $this->guid = $guid;
272
        return $this;
273
    }
274
275
    /**
276
     * Gets as decimal

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

@@ 192-201 (lines=10) @@
189
     * @param string $guid
190
     * @return self
191
     */
192
    public function setGuid($guid)
193
    {
194
        $msg = null;
195
        if (null != $guid && !$this->isTGuidLiteralValid($guid)) {
196
            $msg = "Guid must be valid GUID";
197
            throw new \InvalidArgumentException($msg);
198
        }
199
        $this->guid = $guid;
200
        return $this;
201
    }
202
203
    /**
204
     * Gets as decimal