Facade
Properties
$resolvedInstance array
The resolved object instances.
Methods
resolved ( Closure $callback ) : void
Run a Closure when the facade has been resolved.
Parameters
- $callback Closure
spy ( ) : Mockery\MockInterface
Convert the facade into a Mockery spy.
partialMock ( ) : Mockery\MockInterface
Initiate a partial mock on the facade.
shouldReceive ( ) : Mockery\Expectation
Initiate a mock expectation on the facade.
createFreshMockInstance ( ) : Mockery\MockInterface
Create a fresh mock instance for the given class.
createMock ( ) : Mockery\MockInterface
Create a fresh mock instance for the given class.
isMock ( ) : bool
Determines whether a mock is set as the instance of the facade.
getMockableClass ( ) : string|null
Get the mockable class for the bound instance.
swap ( $instance ) : void
Hotswap the underlying instance behind the facade.
Parameters
- $instance mixed
getFacadeRoot ( ) : mixed
Get the root object behind the facade.
getFacadeAccessor ( ) : string
Get the registered name of the component.
resolveFacadeInstance ( $name ) : mixed
Resolve the facade root instance from the container.
Parameters
- $name object|string
clearResolvedInstance ( $name ) : void
Clear a resolved facade instance.
Parameters
- $name string
clearResolvedInstances ( ) : void
Clear all of the resolved instances.
getFacadeApplication ( ) : Application
Get the application instance behind the facade.
setFacadeApplication ( $app ) : void
Set the application instance.
Parameters
- $app Application
__callStatic ( $method , $args ) : mixed
Handle dynamic, static calls to the object.
Parameters
- $method string
- $args array