PHP Class Eloquent\Phony\Assertion\Exception\AssertionException

Inheritance: extends Exceptio\Exception
Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $description ) Construct a new assertion exception.
tracePhonyCall ( array $trace ) : array | null Find the Phony entry point call in a stack trace.
trim ( Exception $exception ) Trim the supplied exception's stack trace to only include relevant information.

Method Details

__construct() public méthode

Construct a new assertion exception.
public __construct ( string $description )
$description string The failure description.

tracePhonyCall() public static méthode

Find the Phony entry point call in a stack trace.
public static tracePhonyCall ( array $trace ) : array | null
$trace array The stack trace.
Résultat array | null The call, or null if unable to determine the entry point.

trim() public static méthode

Also replaces the file path and line number.
public static trim ( Exception $exception )
$exception Exception The exception.