PHP Class Eloquent\Phony\Hook\Exception\FunctionHookGenerationFailedException

Inheritance: extends Exceptio\Exception, implements FunctionHookException
Datei anzeigen Open project: eloquent/phony

Public Methods

Method Description
__construct ( string $functionName, callable $callback, string $source, array $error = null, Exceptio\Exception | Erro\Error | null $cause = null ) Construct a mock generation failed exception.
callback ( ) : callable Get the callback.
error ( ) : mixed>\array Get the error details.
functionName ( ) : string Get the function name.
source ( ) : string Get the generated source code.

Method Details

__construct() public method

Construct a mock generation failed exception.
public __construct ( string $functionName, callable $callback, string $source, array $error = null, Exceptio\Exception | Erro\Error | null $cause = null )
$functionName string The function name.
$callback callable The callback.
$source string The generated source code.
$error array
$cause Exceptio\Exception | Erro\Error | null The cause, if available.

callback() public method

Get the callback.
public callback ( ) : callable
return callable The callback.

error() public method

Get the error details.
public error ( ) : mixed>\array
return mixed>\array

functionName() public method

Get the function name.
public functionName ( ) : string
return string The function name.

source() public method

Get the generated source code.
public source ( ) : string
return string The generated source code.