Code Duplication    Length = 13-19 lines in 2 locations

src/POData/Providers/Metadata/SimpleMetadataProvider.php 2 locations

@@ 452-470 (lines=19) @@
449
     * @param TypeCode $typeCode type of the key property
450
     * @param bool $isBag property is bag or not
451
     */
452
    public function addPrimitiveProperty(
453
        $resourceType,
454
        $name,
455
        $typeCode,
456
        $isBag = false,
457
        $defaultValue = null,
458
        $nullable = false
459
    ) {
460
        $this->_addPrimitivePropertyInternal(
461
            $resourceType,
462
            $name,
463
            $typeCode,
464
            false,
465
            $isBag,
466
            false,
467
            $defaultValue,
468
            $nullable
469
        );
470
    }
471
472
    /**
473
     * To add a non-key etag property.
@@ 480-492 (lines=13) @@
477
     * @param string $name name of the property
478
     * @param TypeCode $typeCode type of the etag property
479
     */
480
    public function addETagProperty($resourceType, $name, $typeCode, $defaultValue = null, $nullable = false)
481
    {
482
        $this->_addPrimitivePropertyInternal(
483
            $resourceType,
484
            $name,
485
            $typeCode,
486
            false,
487
            false,
488
            true,
489
            $defaultValue,
490
            $nullable
491
        );
492
    }
493
494
    /**
495
     * To add a resource reference property.