Code Duplication    Length = 10-10 lines in 3 locations

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

@@ 304-313 (lines=10) @@
301
     * @param string $sRID
302
     * @return self
303
     */
304
    public function setSRID($sRID)
305
    {
306
        $msg = null;
307
        if (null != $sRID && !$this->isTSridFacetValid($sRID)) {
308
            $msg = "SRID must be a valid TSridFacet";
309
            throw new \InvalidArgumentException($msg);
310
        }
311
        $this->sRID = $sRID;
312
        return $this;
313
    }
314
315
    public function isTFacetAttributesTraitValid(&$msg = null)
316
    {

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

@@ 250-259 (lines=10) @@
247
     * @param string $sRID
248
     * @return self
249
     */
250
    public function setSRID($sRID)
251
    {
252
        $msg = null;
253
        if (null != $sRID && !$this->isTSridFacetValid($sRID)) {
254
            $msg = "SRID must be a valid TSRIDFacet";
255
            throw new \InvalidArgumentException($msg);
256
        }
257
        $this->sRID = $sRID;
258
        return $this;
259
    }
260
261
    public function isTFunctionImportParameterAttributesValid(&$msg = null)
262
    {

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

@@ 386-395 (lines=10) @@
383
     * @param string $sRID
384
     * @return self
385
     */
386
    public function setSRID($sRID)
387
    {
388
        $msg = null;
389
        if (null != $sRID && !$this->isTSridFacetValid($sRID)) {
390
            $msg = "SRID must be a valid TSridFacet";
391
            throw new \InvalidArgumentException($msg);
392
        }
393
        $this->sRID = $sRID;
394
        return $this;
395
    }
396
397
    /**
398
     * Gets as concurrencyMode