Code Duplication    Length = 9-13 lines in 2 locations

src/MetadataV3/edm/ssdl/TFunctionType.php 2 locations

@@ 384-392 (lines=9) @@
381
     * @return self
382
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType $parameter
383
     */
384
    public function addToParameter(TParameterType $parameter)
385
    {
386
        $msg = null;
387
        if (!$parameter->isOK($msg)) {
388
            throw new \InvalidArgumentException($msg);
389
        }
390
        $this->parameter[] = $parameter;
391
        return $this;
392
    }
393
394
    /**
395
     * isset parameter
@@ 432-444 (lines=13) @@
429
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType[] $parameter
430
     * @return self
431
     */
432
    public function setParameter(array $parameter)
433
    {
434
        $msg = null;
435
        if (!$this->isValidArrayOK(
436
            $parameter,
437
            '\AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TParameterType',
438
            $msg
439
        )) {
440
            throw new \InvalidArgumentException($msg);
441
        }
442
        $this->parameter = $parameter;
443
        return $this;
444
    }
445
446
    /**
447
     * Adds as commandText