kahlan\Summary::logs PHP Method

logs() public method

Get log report
public logs ( string $type = null ) : array
$type string The type of data.
return array
    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;
    }