abstract class Definition

Definition used by ContainerBuilder.

Traits

Strict class for better experience.

Methods

setName(string $name)

No description

string|null
getName()

No description

setType(string|null $type)

No description

string|null
getType()

No description

setTags(array $tags)

No description

array
getTags()

No description

addTag(string $tag, $attr = true)

No description

mixed
getTag(string $tag)

No description

setAutowired(bool|string|string[] $state = true)

No description

bool|string[]
getAutowired()

No description

setExported(bool $state = true)

No description

bool
isExported()

No description

__clone()

No description

void
resolveType(Resolver $resolver)

No description

void
complete(Resolver $resolver)

No description

void
generateMethod(Method $method, PhpGenerator $generator)

No description

void
setNotifier(callable|null $notifier)

No description

setClass(string|null $type) deprecated

No description

string|null
getClass() deprecated

No description

bool
isDynamic() deprecated

No description

string|null
getImplement() deprecated

No description

isAutowired() deprecated

No description

Details

at line 42
final Definition setName(string $name)

Parameters

string $name

Return Value

Definition

at line 52
final string|null getName()

Return Value

string|null

at line 61
protected Definition setType(string|null $type)

Parameters

string|null $type

Return Value

Definition

at line 77
final string|null getType()

Return Value

string|null

at line 86
final Definition setTags(array $tags)

Parameters

array $tags

Return Value

Definition

at line 93
final array getTags()

Return Value

array

at line 103
final Definition addTag(string $tag, $attr = true)

Parameters

string $tag
$attr

Return Value

Definition

at line 113
final mixed getTag(string $tag)

Parameters

string $tag

Return Value

mixed

at line 123
final Definition setAutowired(bool|string|string[] $state = true)

Parameters

bool|string|string[] $state

Return Value

Definition

at line 136
final bool|string[] getAutowired()

Return Value

bool|string[]

at line 145
Definition setExported(bool $state = true)

Parameters

bool $state

Return Value

Definition

at line 151
bool isExported()

Return Value

bool

at line 157
__clone()

at line 166
abstract void resolveType(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

at line 169
abstract void complete(Resolver $resolver)

Parameters

Resolver $resolver

Return Value

void

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

Parameters

Method $method
PhpGenerator $generator

Return Value

void

at line 175
final void setNotifier(callable|null $notifier)

Parameters

callable|null $notifier

Return Value

void

at line 187
setClass(string|null $type) deprecated

deprecated Use setType()

Parameters

string|null $type

at line 196
string|null getClass() deprecated

deprecated Use getType()

Return Value

string|null

at line 205
bool isDynamic() deprecated

deprecated Use '$def instanceof Nette\DI\Definitions\ImportedDefinition'

Return Value

bool

at line 214
string|null getImplement() deprecated

deprecated Use Nette\DI\Definitions\FactoryDefinition or AccessorDefinition

Return Value

string|null

at line 223
isAutowired() deprecated

deprecated Use getAutowired()