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

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