src/Core/Spectra/IonTrait.php
public function getRetentionTime()
    {
        if (is_array($this->retentionTimeWindow)) {
            return ($this->retentionTimeWindow[static::RETENTION_TIME_START] +
                $this->retentionTimeWindow[static::RETENTION_TIME_END]) / 2;
        }
        
        return $this->retentionTimeWindow;
    }
public function getRetentionTime()
    {
        if (is_array($this->retentionTimeWindow)) {
            return ($this->retentionTimeWindow[static::RETENTION_TIME_START] +
                $this->retentionTimeWindow[static::RETENTION_TIME_END]) / 2;
        }
        
        return $this->retentionTimeWindow;
    }
public function getRetentionTime ( ) { if ( is_array ( $ this -> retentionTimeWindow ) ) { return ( $ this -> retentionTimeWindow [ static :: RETENTION_TIME_START ] + $ this -> retentionTimeWindow [ static :: RETENTION_TIME_END ] ) / 2 ; } return $ this -> retentionTimeWindow ; }
Gets the retention time in seconds, or the average if a window has been set

@return float
Gets the retention time in seconds or the average if a window has been set