debug/Frame.php
protected function setData(array $data) : Frame
    {
        $this->file     = $data['file']     ?? '';
        $this->line     = $data['line']     ?? 0;
        $this->class    = $data['class']    ?? '';
        $this->function = $data['function'] ?? '';
        $this->type     = $data['type']     ?? '';
        $this->args     = $data['args']     ?? [];

        // If we're dealing with a class, try to get its namespace and short name.
        if ($this->class) {
            $parts = explode('\\', $this->class);

            $this->shortClass = array_pop($parts);
            $this->namespace  = implode('\\', $parts);
        } else {
            // Otherwise initialize with zero-values.
            $this->shortClass = '';
            $this->namespace  = '';
        }

        return $this;
    }
protected function setData(array $data) : Frame
    {
        $this->file     = $data['file']     ?? '';
        $this->line     = $data['line']     ?? 0;
        $this->class    = $data['class']    ?? '';
        $this->function = $data['function'] ?? '';
        $this->type     = $data['type']     ?? '';
        $this->args     = $data['args']     ?? [];

        // If we're dealing with a class, try to get its namespace and short name.
        if ($this->class) {
            $parts = explode('\\', $this->class);

            $this->shortClass = array_pop($parts);
            $this->namespace  = implode('\\', $parts);
        } else {
            // Otherwise initialize with zero-values.
            $this->shortClass = '';
            $this->namespace  = '';
        }

        return $this;
    }
protected function setData ( array $ data ) : Frame { $ this -> file = $ data [ 'file' ] ?? '' ; $ this -> line = $ data [ 'line' ] ?? 0 ; $ this -> class = $ data [ 'class' ] ?? '' ; $ this -> function = $ data [ 'function' ] ?? '' ; $ this -> type = $ data [ 'type' ] ?? '' ; $ this -> args = $ data [ 'args' ] ?? [ ] ; // If we're dealing with a class, try to get its namespace and short name. if ( $ this -> class ) { $ parts = explode ( '\\' , $ this -> class ) ; $ this -> shortClass = array_pop ( $ parts ) ; $ this -> namespace = implode ( '\\' , $ parts ) ; } else { // Otherwise initialize with zero-values. $ this -> shortClass = '' ; $ this -> namespace = '' ; } return $ this ; }
Sets the Frame's data.

@param   array   $data   The Frame's data, in the same format as returned by \Exception::getTrace().
@return  $this
Sets the Frame s data .