\Whoops\ExceptionFrameCollection

Exposes a fluent interface for dealing with an ordered list of stack-trace frames.

Summary

Methods
Properties
Constants
__construct()
filter()
map()
getArray()
getIterator()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
count()
countIsApplication()
serialize()
unserialize()
prependFrames()
topDiff()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$frames
N/A

Properties

$frames

$frames : array<mixed,array>

Type

array<mixed,array>

Methods

__construct()

__construct(array  $frames) 

Parameters

array $frames

filter()

filter(callable  $callable) : \Whoops\Exception\FrameCollection

Filters frames using a callable, returns the same FrameCollection

Parameters

callable $callable

Returns

\Whoops\Exception\FrameCollection

map()

map(callable  $callable) : \Whoops\Exception\FrameCollection

Map the collection of frames

Parameters

callable $callable

Returns

\Whoops\Exception\FrameCollection

getArray()

getArray() : array

Returns an array with all frames, does not affect the internal array.

Returns

array

getIterator()

getIterator() : \ArrayIterator

Returns

\ArrayIterator

offsetExists()

offsetExists(integer  $offset) 

Parameters

integer $offset

offsetGet()

offsetGet(integer  $offset) 

Parameters

integer $offset

offsetSet()

offsetSet(integer  $offset,   $value) 

Parameters

integer $offset
$value

offsetUnset()

offsetUnset(integer  $offset) 

Parameters

integer $offset

count()

count() : integer

Returns

integer

countIsApplication()

countIsApplication() : integer

Count the frames that belongs to the application.

Returns

integer

serialize()

serialize() : string

Returns

string

unserialize()

unserialize(string  $serializedFrames) 

Parameters

string $serializedFrames

prependFrames()

prependFrames(array<mixed,\Whoops\Exception\Frame>  $frames) 

Parameters

array<mixed,\Whoops\Exception\Frame> $frames

Array of Frame instances, usually from $e->getPrevious()

topDiff()

topDiff(\Whoops\Exception\FrameCollection  $parentFrames) : array<mixed,\Whoops\Exception\Frame>

Gets the innermost part of stack trace that is not the same as that of outer exception

Parameters

\Whoops\Exception\FrameCollection $parentFrames

Outer exception frames to compare tail against

Returns

array<mixed,\Whoops\Exception\Frame>