src/Summary.php
public function logs($type = null)
    {
        if (func_num_args()) {
            return isset($this->_logs[$type]) ? $this->_logs[$type] : [];
        }
        $logs = [];
        foreach ($this->_logs as $key => $value) {
            $logs = array_merge($logs, $value);
        }
        return $logs;
    }
public function logs($type = null)
    {
        if (func_num_args()) {
            return isset($this->_logs[$type]) ? $this->_logs[$type] : [];
        }
        $logs = [];
        foreach ($this->_logs as $key => $value) {
            $logs = array_merge($logs, $value);
        }
        return $logs;
    }
public function logs ( $ type = null ) { if ( func_num_args ( ) ) { return isset ( $ this -> _logs [ $ type ] ) ? $ this -> _logs [ $ type ] : [ ] ; } $ logs = [ ] ; foreach ( $ this -> _logs as $ key => $ value ) { $ logs = array_merge ( $ logs , $ value ) ; } return $ logs ; }
Get log report

@param  string $type The type of data.
@return array
Get log report