PHP Class Nelmio\Alice\Throwable\Exception\Generator\Instantiator\InstantiationExceptionFactory

Datei anzeigen Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
create ( Nelmio\Alice\FixtureInterface $fixture, integer $code, Throwable $previous ) : InstantiationException
createForConstructorIsMissingMandatoryParameters ( Nelmio\Alice\FixtureInterface $fixture ) : InstantiationException
createForCouldNotGetConstructorData ( Nelmio\Alice\FixtureInterface $fixture, integer $code, Throwable $previous = null ) : InstantiationException
createForInstantiatorNotFoundForFixture ( Nelmio\Alice\FixtureInterface $fixture ) : InstantiatorNotFoundException
createForInvalidInstanceType ( Nelmio\Alice\FixtureInterface $fixture, object $instance ) : InstantiationException
createForNonPublicConstructor ( Nelmio\Alice\FixtureInterface $fixture ) : InstantiationException

Method Details

create() public static method

public static create ( Nelmio\Alice\FixtureInterface $fixture, integer $code, Throwable $previous ) : InstantiationException
$fixture Nelmio\Alice\FixtureInterface
$code integer
$previous Throwable
return InstantiationException

createForConstructorIsMissingMandatoryParameters() public static method

public static createForConstructorIsMissingMandatoryParameters ( Nelmio\Alice\FixtureInterface $fixture ) : InstantiationException
$fixture Nelmio\Alice\FixtureInterface
return InstantiationException

createForCouldNotGetConstructorData() public static method

public static createForCouldNotGetConstructorData ( Nelmio\Alice\FixtureInterface $fixture, integer $code, Throwable $previous = null ) : InstantiationException
$fixture Nelmio\Alice\FixtureInterface
$code integer
$previous Throwable
return InstantiationException

createForInstantiatorNotFoundForFixture() public static method

public static createForInstantiatorNotFoundForFixture ( Nelmio\Alice\FixtureInterface $fixture ) : InstantiatorNotFoundException
$fixture Nelmio\Alice\FixtureInterface
return InstantiatorNotFoundException

createForInvalidInstanceType() public static method

public static createForInvalidInstanceType ( Nelmio\Alice\FixtureInterface $fixture, object $instance ) : InstantiationException
$fixture Nelmio\Alice\FixtureInterface
$instance object
return InstantiationException

createForNonPublicConstructor() public static method

public static createForNonPublicConstructor ( Nelmio\Alice\FixtureInterface $fixture ) : InstantiationException
$fixture Nelmio\Alice\FixtureInterface
return InstantiationException