ServiceDefinition
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(string|array|Definition|Reference|Statement $factory, array $args = [])
Alias for setCreator()
getFactory()
Alias for getCreator()
getCreator()
No description
string|array|Definition|Reference|null
getEntity()
No description
setArguments(array $args = [])
No description
setArgument($key, $value)
No description
setSetup(array $setup)
No description
array
getSetup()
No description
void
void
__clone()
No description
Details
at line 32
__construct()
No description
at line 39
Definition
setType(string|null $type)
No description
at line 50
ServiceDefinition
setFactory(string|array|Definition|Reference|Statement $factory, array $args = [])
Alias for setCreator()
at line 59
Statement
getFactory()
Alias for getCreator()
at line 69
ServiceDefinition
setCreator(string|array|Definition|Reference|Statement $creator, array $args = [])
No description
at line 78
Statement
getCreator()
No description
at line 85
string|array|Definition|Reference|null
getEntity()
No description
at line 92
ServiceDefinition
setArguments(array $args = [])
No description
at line 100
ServiceDefinition
setArgument($key, $value)
No description
at line 111
ServiceDefinition
setSetup(array $setup)
No description
at line 126
array
getSetup()
No description
at line 136
ServiceDefinition
addSetup(string|array|Definition|Reference|Statement $entity, array $args = [])
No description
at line 146
void
resolveType(Resolver $resolver)
No description
at line 172
void
complete(Resolver $resolver)
No description
at line 196
void
generateMethod(Method $method, PhpGenerator $generator)
No description
at line 214
__clone()
No description