public function truncate(array $options): bool
    {
        $options = array_replace($this->defaultOptions, $options);
        $nItems = [];
        foreach (array_reverse($this->props['items']) as $item) {
            $f = $this->filterItem($item, $options);
            if ($f) {
                if ($f !== self::FILTER_LEFT) {
                    $nItems[] = $item;
                }
                $this->props['items'] = array_reverse($nItems);
                return true;
            }
            $nItems[] = $item;
        }
        return false;
    }
public function truncate(array $options): bool
    {
        $options = array_replace($this->defaultOptions, $options);
        $nItems = [];
        foreach (array_reverse($this->props['items']) as $item) {
            $f = $this->filterItem($item, $options);
            if ($f) {
                if ($f !== self::FILTER_LEFT) {
                    $nItems[] = $item;
                }
                $this->props['items'] = array_reverse($nItems);
                return true;
            }
            $nItems[] = $item;
        }
        return false;
    }
public function truncate ( array $ options ) : bool { $ options = array_replace ( $ this -> defaultOptions , $ options ) ; $ nItems = [ ] ; foreach ( array_reverse ( $ this -> props [ 'items' ] ) as $ item ) { $ f = $ this -> filterItem ( $ item , $ options ) ; if ( $ f ) { if ( $ f !== self :: FILTER_LEFT ) { $ nItems [ ] = $ item ; } $ this -> props [ 'items' ] = array_reverse ( $ nItems ) ; return true ; } $ nItems [ ] = $ item ; } return false ; }
Truncates the trace by a options

@link https://github.com/axypro/backtrace/blob/master/doc/truncate.md documentation
@param array $options
the options (see $defaultOptions for list)
@return bool
Was found truncation point?
Truncates the trace by a options