PHP Class XStatic\StaticProxy

Afficher le fichier Open project: jeremeamia/xstatic Class Usage Examples

Protected Properties

Свойство Type Description
$container The Container that provides the Proxy Subjects

Méthodes publiques

Méthode 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 méthode

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
Résultat mixed

getInstance() public static méthode

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

getInstanceIdentifier() public static méthode

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

setContainer() public static méthode

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
Résultat mixed

Property Details

$container protected_oe static_oe property

The Container that provides the Proxy Subjects
protected static $container