\Data

Facade class.

This class is abstract meaning it cannot be instantiated directly. If you are to extend it you must implement the method returnFacadeId().

For information on what this class accomplishes and how it works see the Disco documentation for Inversion of Control and Facading at http://discophp.com/docs/IoC-facades .

Summary

Methods
Properties
Constants
__callStatic()
instance()
No public properties found
No constants found
returnFacadeId()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__callStatic()

__callStatic(callable  $method, mixed  $args) : mixed

magic method __callStatic(), see php doc at http://php.net/manual/en/language.oop5.overloading.php#object.callstatic .

When a static method call on the Facade is made (ex DB::query()) if the static method called on the Facade does not exist, then resolve the underlying Base Class from the IoC container and attempt to call a non-static method of the same name, and with the same parameters on the instance.

Parameters

callable $method

The method that is attempting to be accessed on the Static Facade but failed to exist.

mixed $args

The arguements that were passed to the original $method.

Returns

mixed —

Return the result of the method call on the resolved instance from the IoC container.

instance()

instance() : object

Return the instance of the Facades underlying Base Class from the IoC container.

Returns

object

returnFacadeId()

returnFacadeId() : string

Classes that extend the Facade MUST IMPLEMENT this method! This method is in charge of returning the Key used in the IoC container to access the underlying instance .

It must be unique within your application and within the Framework.

Returns

string —

The Key of the instance in the IoC container.