abstract class Definition

Definition used by ContainerBuilder.

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, mixed $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)

internal  This is managed by ContainerBuilder and should not be called by user
 

No description

Parameters

string $name

Return Value

Definition

at line 52
final string|null getName()

No description

Return Value

string|null

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

No description

Parameters

string|null $type

Return Value

Definition

at line 79
final string|null getType()

No description

Return Value

string|null

at line 86
final Definition setTags(array $tags)

No description

Parameters

array $tags

Return Value

Definition

at line 93
final array getTags()

No description

Return Value

array

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

No description

Parameters

string $tag
mixed $attr

Return Value

Definition

at line 111
final mixed getTag(string $tag)

No description

Parameters

string $tag

Return Value

mixed

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

No description

Parameters

bool|string|string[] $state

Return Value

Definition

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

No description

Return Value

bool|string[]

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

No description

Parameters

bool $state

Return Value

Definition

at line 147
bool isExported()

No description

Return Value

bool

at line 153
__clone()

No description

at line 162
abstract void resolveType(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 165
abstract void complete(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

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

No description

Parameters

Method $method
PhpGenerator $generator

Return Value

void

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

No description

Parameters

callable|null $notifier

Return Value

void

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

deprecated Use setType()

No description

Parameters

string|null $type

at line 188
string|null getClass() deprecated

deprecated Use getType()

No description

Return Value

string|null

at line 195
bool isDynamic() deprecated

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

No description

Return Value

bool

at line 202
string|null getImplement() deprecated

deprecated Use Nette\DI\Definitions\FactoryDefinition or AccessorDefinition

No description

Return Value

string|null

at line 209
isAutowired() deprecated

deprecated Use getAutowired()

No description

Traits

Strict class for better experience.