PHP Class Nette\DI\ServiceDefinition

Inheritance: extends Nette\Object
显示文件 Open project: nette/di Class Usage Examples

Public Properties

Property Type Description
$parameters array

Public Methods

Method Description
__clone ( )
addSetup ( $entity, array $args = [] ) : self
addTag ( $tag, $attr = TRUE ) : self
getAutowired ( ) : boolean | string[]
getClass ( ) : string | null
getEntity ( ) : string | array | ServiceDefinition | null
getFactory ( ) : Statement | null
getImplement ( ) : string | null
getImplementMode ( ) : string | null
getImplementType ( )
getInject ( ) : boolean | null
getParameters ( ) : array
getSetup ( ) : Statement[]
getTag ( $tag ) : mixed
getTags ( ) : array
isAutowired ( ) : boolean | string[]
isDynamic ( ) : boolean
setArguments ( array $args = [] ) : self
setAutowired ( $state = TRUE ) : self
setClass ( $class, array $args = [] ) : self
setDynamic ( $state = TRUE ) : self
setFactory ( $factory, array $args = [] ) : self
setImplement ( $interface ) : self
setImplementMode ( $mode ) : self
setImplementType ( $type )
setInject ( $state = TRUE ) : self
setNotifier ( callable $notifier )
setParameters ( array $params ) : self
setSetup ( array $setup ) : self
setTags ( array $tags ) : self

Method Details

__clone() public method

public __clone ( )

addSetup() public method

public addSetup ( $entity, array $args = [] ) : self
$args array
return self

addTag() public method

public addTag ( $tag, $attr = TRUE ) : self
return self

getAutowired() public method

public getAutowired ( ) : boolean | string[]
return boolean | string[]

getClass() public method

public getClass ( ) : string | null
return string | null

getEntity() public method

public getEntity ( ) : string | array | ServiceDefinition | null
return string | array | ServiceDefinition | null

getFactory() public method

public getFactory ( ) : Statement | null
return Statement | null

getImplement() public method

public getImplement ( ) : string | null
return string | null

getImplementMode() public method

public getImplementMode ( ) : string | null
return string | null

getImplementType() public method

Deprecation:
public getImplementType ( )

getInject() public method

public getInject ( ) : boolean | null
return boolean | null

getParameters() public method

public getParameters ( ) : array
return array

getSetup() public method

public getSetup ( ) : Statement[]
return Statement[]

getTag() public method

public getTag ( $tag ) : mixed
return mixed

getTags() public method

public getTags ( ) : array
return array

isAutowired() public method

public isAutowired ( ) : boolean | string[]
return boolean | string[]

isDynamic() public method

public isDynamic ( ) : boolean
return boolean

setArguments() public method

public setArguments ( array $args = [] ) : self
$args array
return self

setAutowired() public method

public setAutowired ( $state = TRUE ) : self
return self

setClass() public method

public setClass ( $class, array $args = [] ) : self
$args array
return self

setDynamic() public method

public setDynamic ( $state = TRUE ) : self
return self

setFactory() public method

public setFactory ( $factory, array $args = [] ) : self
$args array
return self

setImplement() public method

public setImplement ( $interface ) : self
return self

setImplementMode() public method

public setImplementMode ( $mode ) : self
return self

setImplementType() public method

Deprecation:
public setImplementType ( $type )

setInject() public method

public setInject ( $state = TRUE ) : self
return self

setNotifier() public method

public setNotifier ( callable $notifier )
$notifier callable

setParameters() public method

public setParameters ( array $params ) : self
$params array
return self

setSetup() public method

public setSetup ( array $setup ) : self
$setup array
return self

setTags() public method

public setTags ( array $tags ) : self
$tags array
return self

Property Details

$parameters public_oe property

public array $parameters
return array