class FactoryDefinition extends Definition

Definition of standard service.

Constants

METHOD_CREATE

Properties

array $parameters

Methods

__construct()

No description

setImplement(string $type)

No description

string|null
getImplement()

No description

string|null
getResultType()

No description

setResultDefinition(Definition $definition)

No description

getResultDefinition()

No description

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

No description

Statement|null
getFactory() deprecated

No description

mixed
getEntity() deprecated

No description

setArguments(array $args = []) deprecated

No description

setSetup(array $setup) deprecated

No description

array
getSetup() deprecated

No description

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

No description

setParameters(array $params)

No description

array
getParameters()

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 31
__construct()

at line 40
FactoryDefinition setImplement(string $type)

Parameters

string $type

Return Value

FactoryDefinition

at line 54
string|null getImplement()

Return Value

string|null

at line 60
final string|null getResultType()

Return Value

string|null

at line 69
FactoryDefinition setResultDefinition(Definition $definition)

Parameters

Definition $definition

Return Value

FactoryDefinition

at line 79
Definition getResultDefinition()

Return Value

Definition

at line 89
FactoryDefinition setFactory($factory, array $args = []) deprecated

deprecated use ->getResultDefinition()->setFactory()

Parameters

$factory
array $args

Return Value

FactoryDefinition

at line 100
Statement|null getFactory() deprecated

deprecated use ->getResultDefinition()->getFactory()

Return Value

Statement|null

at line 111
mixed getEntity() deprecated

deprecated use ->getResultDefinition()->getEntity()

Return Value

mixed

at line 122
FactoryDefinition setArguments(array $args = []) deprecated

deprecated use ->getResultDefinition()->setArguments()

Parameters

array $args

Return Value

FactoryDefinition

at line 134
FactoryDefinition setSetup(array $setup) deprecated

deprecated use ->getResultDefinition()->setSetup()

Parameters

array $setup

Return Value

FactoryDefinition

at line 145
array getSetup() deprecated

deprecated use ->getResultDefinition()->getSetup()

Return Value

array

at line 156
FactoryDefinition addSetup($entity, array $args = []) deprecated

deprecated use ->getResultDefinition()->addSetup()

Parameters

$entity
array $args

Return Value

FactoryDefinition

at line 167
FactoryDefinition setParameters(array $params)

Parameters

array $params

Return Value

FactoryDefinition

at line 174
array getParameters()

Return Value

array

at line 180
void resolveType(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

at line 208
void complete(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

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

Parameters

Method $method
PhpGenerator $generator

Return Value

void

at line 298
__clone()