abstract class Facade (View source)

Base facade class that should be extended by all facades

Methods

static void
spy()

Convert the facade into a Mockery spy.

static Expectation
shouldReceive()

Initiate a mock expectation on the facade.

static void
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

static mixed
getFacadeRoot()

Get the root object behind the facade.

static void
clearResolvedInstance(string $name)

Clear a resolved facade instance.

static void
clearResolvedInstances()

Clear all of the resolved instances.

static object
getFacadeApplication()

Get the application instance behind the facade.

static void
setFacadeApplication(object $app)

Set the application instance.

static mixed
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Details

static void spy()

Convert the facade into a Mockery spy.

Return Value

void

static Expectation shouldReceive()

Initiate a mock expectation on the facade.

Return Value

Expectation

static void swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Parameters

mixed $instance

Return Value

void

static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

static void clearResolvedInstance(string $name)

Clear a resolved facade instance.

Parameters

string $name

Return Value

void

static void clearResolvedInstances()

Clear all of the resolved instances.

Return Value

void

static object getFacadeApplication()

Get the application instance behind the facade.

Return Value

object

static void setFacadeApplication(object $app)

Set the application instance.

Parameters

object $app

Return Value

void

static mixed __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

RuntimeException