PHP 클래스 Symfony\Component\DependencyInjection\InterfaceInjector

저자: Bulat Shakirzyanov ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$calls
$class
$processedDefinitions

공개 메소드들

메소드 설명
__construct ( string $class ) Contructs interface injector by specifying the target class name
addMethodCall ( string $method, array $arguments = [] ) : InterfaceInjector Adds a method to call to be injected on any service implementing the interface.
getClass ( ) : string Returns the interface name
getMethodCalls ( ) : array Gets the methods to call after service initialization.
hasMethodCall ( string $method ) : boolean Check if the current definition has a given method to call after service initialization.
merge ( InterfaceInjector $injector ) Merges another InterfaceInjector
processDefinition ( Definition $definition, $class = null ) : void Adds method calls if Definition is of required interface
removeMethodCall ( string $method ) : Definition Removes a method to call after service initialization.
supports ( string $object ) : boolean Inspects if current interface injector is to be used with a given class

메소드 상세

__construct() 공개 메소드

Contructs interface injector by specifying the target class name
public __construct ( string $class )
$class string

addMethodCall() 공개 메소드

Adds a method to call to be injected on any service implementing the interface.
public addMethodCall ( string $method, array $arguments = [] ) : InterfaceInjector
$method string The method name to call
$arguments array An array of arguments to pass to the method call
리턴 InterfaceInjector The current instance

getClass() 공개 메소드

Returns the interface name
public getClass ( ) : string
리턴 string

getMethodCalls() 공개 메소드

Gets the methods to call after service initialization.
public getMethodCalls ( ) : array
리턴 array An array of method calls

hasMethodCall() 공개 메소드

Check if the current definition has a given method to call after service initialization.
public hasMethodCall ( string $method ) : boolean
$method string The method name to search for
리턴 boolean

merge() 공개 메소드

Merges another InterfaceInjector
public merge ( InterfaceInjector $injector )
$injector InterfaceInjector

processDefinition() 공개 메소드

Adds method calls if Definition is of required interface
public processDefinition ( Definition $definition, $class = null ) : void
$definition Definition
리턴 void

removeMethodCall() 공개 메소드

Removes a method to call after service initialization.
public removeMethodCall ( string $method ) : Definition
$method string The method name to remove
리턴 Definition The current instance

supports() 공개 메소드

Inspects if current interface injector is to be used with a given class
public supports ( string $object ) : boolean
$object string
리턴 boolean

프로퍼티 상세

$calls 보호되어 있는 프로퍼티

protected $calls

$class 보호되어 있는 프로퍼티

protected $class

$processedDefinitions 보호되어 있는 프로퍼티

protected $processedDefinitions