src/Core/Spectra/IonTrait.php
public function setRetentionTime($retentionTime)
    {
        if (! (is_int($retentionTime) || is_float($retentionTime))) {
            throw new \InvalidArgumentException(
                'Argument 1 must be of type int or float. Value is of type ' . gettype($retentionTime));
        }
        
        $this->retentionTimeWindow = $retentionTime;
    }
public function setRetentionTime($retentionTime)
    {
        if (! (is_int($retentionTime) || is_float($retentionTime))) {
            throw new \InvalidArgumentException(
                'Argument 1 must be of type int or float. Value is of type ' . gettype($retentionTime));
        }
        
        $this->retentionTimeWindow = $retentionTime;
    }
public function setRetentionTime ( $ retentionTime ) { if ( ! ( is_int ( $ retentionTime ) || is_float ( $ retentionTime ) ) ) { throw new \ InvalidArgumentException ( 'Argument 1 must be of type int or float. Value is of type ' . gettype ( $ retentionTime ) ) ; } $ this -> retentionTimeWindow = $ retentionTime ; }
Sets the spectra elements retention time

@param float $retentionTime
Retention time of fragment
Sets the spectra elements retention time