PHP Class XStatic\StaticProxy

Datei anzeigen Open project: jeremeamia/xstatic Class Usage Examples

Protected Properties

Property Type Description
$container The Container that provides the Proxy Subjects

Public Methods

Method Description
__callStatic ( string $method, array $args ) : mixed Performs the proxying of the statically called method to the Proxy Subject in the Container
getInstance ( ) : mixed Retrieves the instance of the Proxy Subject from the Container that the Static Proxy is associated with
getInstanceIdentifier ( ) : string Retrieves the Instance Identifier that is used to retrieve the Proxy Subject from the Container
setContainer ( Interop\Container\ContainerInterface $container ) : mixed Sets the Container that will be used to retrieve the Proxy Subject

Method Details

__callStatic() public static method

Performs the proxying of the statically called method to the Proxy Subject in the Container
public static __callStatic ( string $method, array $args ) : mixed
$method string
$args array
return mixed

getInstance() public static method

Retrieves the instance of the Proxy Subject from the Container that the Static Proxy is associated with
public static getInstance ( ) : mixed
return mixed

getInstanceIdentifier() public static method

Retrieves the Instance Identifier that is used to retrieve the Proxy Subject from the Container
public static getInstanceIdentifier ( ) : string
return string

setContainer() public static method

Sets the Container that will be used to retrieve the Proxy Subject
public static setContainer ( Interop\Container\ContainerInterface $container ) : mixed
$container Interop\Container\ContainerInterface The Container that provides the real Proxy Subject
return mixed

Property Details

$container protected_oe static_oe property

The Container that provides the Proxy Subjects
protected static $container