class ServiceDefinition

Definition used by ContainerBuilder.

Constants

IMPLEMENT_MODE_CREATE

IMPLEMENT_MODE_GET

Properties

array $parameters
string|null $class
Statement|null $factory
Statement[] $setup

Methods

setClass($type, array $args = []) deprecated

No description

string|null
getClass() deprecated

No description

setType($type)

No description

string|null
getType()

No description

setFactory($factory, array $args = [])

No description

Statement|null
getFactory()

No description

string|array|ServiceDefinition|null
getEntity()

No description

setArguments(array $args = [])

No description

setSetup(array $setup)

No description

getSetup()

No description

addSetup($entity, array $args = [])

No description

setParameters(array $params)

No description

array
getParameters()

No description

setTags(array $tags)

No description

array
getTags()

No description

addTag($tag, $attr = true)

No description

mixed
getTag($tag)

No description

setAutowired($state = true)

No description

bool|string[]
isAutowired()

No description

bool|string[]
getAutowired()

No description

setDynamic($state = true)

No description

bool
isDynamic()

No description

setImplement($interface)

No description

string|null
getImplement()

No description

setImplementMode($mode)

No description

string|null
getImplementMode()

No description

setImplementType($type) deprecated

No description

getImplementType() deprecated

No description

setInject($state = true)

No description

bool|null
getInject()

No description

setNotifier(callable $notifier)

No description

__clone()

No description

Details

at line 64
ServiceDefinition setClass($type, array $args = []) deprecated

deprecated Use setType() instead.

No description

Parameters

$type
array $args

Return Value

ServiceDefinition

at line 79
string|null getClass() deprecated

deprecated Use getType() instead.

No description

Return Value

string|null

at line 89
ServiceDefinition setType($type)

No description

Parameters

$type

Return Value

ServiceDefinition

at line 100
string|null getType()

No description

Return Value

string|null

at line 109
ServiceDefinition setFactory($factory, array $args = [])

No description

Parameters

$factory
array $args

Return Value

ServiceDefinition

at line 120
Statement|null getFactory()

No description

Return Value

Statement|null

at line 129
string|array|ServiceDefinition|null getEntity()

No description

Return Value

string|array|ServiceDefinition|null

at line 138
ServiceDefinition setArguments(array $args = [])

No description

Parameters

array $args

Return Value

ServiceDefinition

at line 152
ServiceDefinition setSetup(array $setup)

No description

Parameters

array $setup

Return Value

ServiceDefinition

at line 167
Statement[] getSetup()

No description

Return Value

Statement[]

at line 176
ServiceDefinition addSetup($entity, array $args = [])

No description

Parameters

$entity
array $args

Return Value

ServiceDefinition

at line 186
ServiceDefinition setParameters(array $params)

No description

Parameters

array $params

Return Value

ServiceDefinition

at line 196
array getParameters()

No description

Return Value

array

at line 205
ServiceDefinition setTags(array $tags)

No description

Parameters

array $tags

Return Value

ServiceDefinition

at line 215
array getTags()

No description

Return Value

array

at line 224
ServiceDefinition addTag($tag, $attr = true)

No description

Parameters

$tag
$attr

Return Value

ServiceDefinition

at line 234
mixed getTag($tag)

No description

Parameters

$tag

Return Value

mixed

at line 244
ServiceDefinition setAutowired($state = true)

No description

Parameters

$state

Return Value

ServiceDefinition

at line 255
bool|string[] isAutowired()

No description

Return Value

bool|string[]

at line 264
bool|string[] getAutowired()

No description

Return Value

bool|string[]

at line 274
ServiceDefinition setDynamic($state = true)

No description

Parameters

$state

Return Value

ServiceDefinition

at line 284
bool isDynamic()

No description

Return Value

bool

at line 294
ServiceDefinition setImplement($interface)

No description

Parameters

$interface

Return Value

ServiceDefinition

at line 305
string|null getImplement()

No description

Return Value

string|null

at line 315
ServiceDefinition setImplementMode($mode)

No description

Parameters

$mode

Return Value

ServiceDefinition

at line 328
string|null getImplementMode()

No description

Return Value

string|null

at line 335
setImplementType($type) deprecated

deprecated

No description

Parameters

$type

at line 343
getImplementType() deprecated

deprecated

No description

at line 351
ServiceDefinition setInject($state = true)

No description

Parameters

$state

Return Value

ServiceDefinition

at line 359
bool|null getInject()

No description

Return Value

bool|null

at line 369
setNotifier(callable $notifier)

internal  
 

No description

Parameters

callable $notifier

at line 375
__clone()

No description

Traits

SmartObject