Debug extends Facade
Implements facade for the "debugLogger" service.
Adapted from the Laravel Facade class: https://github.com/laravel/framework/blob/5.3/src/Illuminate/Support/Facades/Facade.php
Tags
Table of Contents
$container | The Pimple container being facaded. | ContainerInterface |
---|---|---|
$resolvedInstance | The resolved object instances. | array |
getFacadeAccessor() | Get the registered name of the component. | string |
swap() | Hotswap the underlying service instance behind the facade. | mixed |
shouldReceive() | Initiate a mock expectation on the facade. | Expectation |
createFreshMockInstance() | Create a fresh mock instance for the given class. | Expectation |
createMockByName() | Create a fresh mock instance for the given class. | Expectation |
isMock() | Determines whether a mock is set as the instance of the facade. | bool |
getMockableClass() | Get the mockable class for the bound instance. | string|null |
getFacadeRoot() | Get the root object behind the facade. | mixed |
getFacadeAccessor() | Get the registered name of the component. | mixed |
resolveFacadeInstance() | Resolve the facade root instance from the container. | mixed |
clearResolvedInstance() | Clear a resolved facade instance. | mixed |
clearResolvedInstances() | Clear all of the resolved instances. | mixed |
getFacadeContainer() | Get the container instance behind the facade. | ContainerInterface |
setFacadeContainer() | Set the container instance. | mixed |
__callStatic() | Handle dynamic, static calls to the object. | mixed |
Properties
$container
The Pimple container being facaded.
protected
static ContainerInterface
$container
$resolvedInstance
The resolved object instances.
protected
static array
$resolvedInstance
Methods
getFacadeAccessor()
Get the registered name of the component.
protected
static getFacadeAccessor(
)
: string
Return values
stringswap()
Hotswap the underlying service instance behind the facade.
public
static swap(
$instance :
mixed
)
: mixed
Parameters
- $instance : mixed
Return values
mixedshouldReceive()
Initiate a mock expectation on the facade.
public
static shouldReceive(
)
: Expectation
Return values
ExpectationcreateFreshMockInstance()
Create a fresh mock instance for the given class.
protected
static createFreshMockInstance(
$name :
string
)
: Expectation
Parameters
- $name : string
Return values
ExpectationcreateMockByName()
Create a fresh mock instance for the given class.
protected
static createMockByName(
$name :
string
)
: Expectation
Parameters
- $name : string
Return values
ExpectationisMock()
Determines whether a mock is set as the instance of the facade.
protected
static isMock(
)
: bool
Return values
boolgetMockableClass()
Get the mockable class for the bound instance.
protected
static getMockableClass(
)
: string|null
Return values
string|nullgetFacadeRoot()
Get the root object behind the facade.
public
static getFacadeRoot(
)
: mixed
Return values
mixedgetFacadeAccessor()
Get the registered name of the component.
protected
static getFacadeAccessor(
)
: mixed
Tags
Return values
mixedresolveFacadeInstance()
Resolve the facade root instance from the container.
protected
static resolveFacadeInstance(
$name :
string|object
)
: mixed
Parameters
- $name : string|object
Return values
mixedclearResolvedInstance()
Clear a resolved facade instance.
public
static clearResolvedInstance(
$name :
string
)
: mixed
Parameters
- $name : string
Return values
mixedclearResolvedInstances()
Clear all of the resolved instances.
public
static clearResolvedInstances(
)
: mixed
Return values
mixedgetFacadeContainer()
Get the container instance behind the facade.
public
static getFacadeContainer(
)
: ContainerInterface
Return values
ContainerInterfacesetFacadeContainer()
Set the container instance.
public
static setFacadeContainer(
$container :
ContainerInterface
)
: mixed
Parameters
- $container : ContainerInterface
Return values
mixed__callStatic()
Handle dynamic, static calls to the object.
public
static __callStatic(
$method :
string
, $args :
array
)
: mixed
Parameters
- $method : string
- $args : array