PHP Class Eloquent\Phony\Mock\Exception\MockGenerationFailedException

Inheritance: extends Exceptio\Exception, implements MockException
Afficher le fichier Open project: eloquent/phony

Méthodes publiques

Méthode Description
__construct ( string $className, MockDefinition $definition, string $source, array $error = null, Exceptio\Exception | Erro\Error | null $cause = null ) Construct a mock generation failed exception.
definition ( ) : MockDefinition Get the definition.
error ( ) : mixed>\array Get the error details.
source ( ) : string Get the generated source code.

Method Details

__construct() public méthode

Construct a mock generation failed exception.
public __construct ( string $className, MockDefinition $definition, string $source, array $error = null, Exceptio\Exception | Erro\Error | null $cause = null )
$className string The class name.
$definition Eloquent\Phony\Mock\Builder\MockDefinition The definition.
$source string The generated source code.
$error array
$cause Exceptio\Exception | Erro\Error | null The cause, if available.

definition() public méthode

Get the definition.
public definition ( ) : MockDefinition
Résultat Eloquent\Phony\Mock\Builder\MockDefinition The definition.

error() public méthode

Get the error details.
public error ( ) : mixed>\array
Résultat mixed>\array

source() public méthode

Get the generated source code.
public source ( ) : string
Résultat string The generated source code.