PHP Класс XStatic\StaticProxy

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$container The Container that provides the Proxy Subjects

Открытые методы

Метод Описание
__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

Описание методов

__callStatic() публичный статический Метод

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
Результат mixed

getInstance() публичный статический Метод

Retrieves the instance of the Proxy Subject from the Container that the Static Proxy is associated with
public static getInstance ( ) : mixed
Результат mixed

getInstanceIdentifier() публичный статический Метод

Retrieves the Instance Identifier that is used to retrieve the Proxy Subject from the Container
public static getInstanceIdentifier ( ) : string
Результат string

setContainer() публичный статический Метод

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
Результат mixed

Описание свойств

$container защищенное статическое свойство

The Container that provides the Proxy Subjects
protected static $container