final class ServiceDefinition extends Definition

Definition of standard service.

Properties

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

Methods

__construct()

No description

setType(string|null $type)

No description

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

Alias for setCreator()

getFactory()

Alias for getCreator()

setCreator(Statement $creator, array $args = [])

No description

getCreator()

No description

Reference|null
getEntity()

No description

setArguments(array $args = [])

No description

setArgument($key, $value)

No description

setSetup(array $setup)

No description

array
getSetup()

No description

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

No description

void
resolveType(Resolver $resolver)

No description

void
complete(Resolver $resolver)

No description

void
generateMethod(Method $method, PhpGenerator $generator)

No description

__clone()

No description

Details

at line 33
__construct()

No description

at line 39
Definition setType(string|null $type)

No description

Parameters

string|null $type

Return Value

Definition

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

Alias for setCreator()

Parameters

Statement $factory
array $args

Return Value

ServiceDefinition

at line 57
Statement getFactory()

Alias for getCreator()

Return Value

Statement

at line 63
ServiceDefinition setCreator(Statement $creator, array $args = [])

No description

Parameters

Statement $creator
array $args

Return Value

ServiceDefinition

at line 72
Statement getCreator()

No description

Return Value

Statement

at line 78
Reference|null getEntity()

No description

Return Value

Reference|null

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

No description

Parameters

array $args

Return Value

ServiceDefinition

at line 91
ServiceDefinition setArgument($key, $value)

No description

Parameters

$key
$value

Return Value

ServiceDefinition

at line 101
ServiceDefinition setSetup(array $setup)

No description

Parameters

array $setup

Return Value

ServiceDefinition

at line 116
array getSetup()

No description

Return Value

array

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

No description

Parameters

Statement $entity
array $args

Return Value

ServiceDefinition

at line 132
void resolveType(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 158
void complete(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 182
void generateMethod(Method $method, PhpGenerator $generator)

No description

Parameters

Method $method
PhpGenerator $generator

Return Value

void

at line 200
__clone()

No description

Traits

SmartObject