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 53
final string|null getName()

No description

Return Value

string|null

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

No description

Parameters

string|null $type

Return Value

Definition

at line 82
final string|null getType()

No description

Return Value

string|null

at line 89
final Definition setTags(array $tags)

No description

Parameters

array $tags

Return Value

Definition

at line 96
final array getTags()

No description

Return Value

array

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

No description

Parameters

string $tag
mixed $attr

Return Value

Definition

at line 114
final mixed getTag(string $tag)

No description

Parameters

string $tag

Return Value

mixed

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

No description

Parameters

bool|string|string[] $state

Return Value

Definition

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

No description

Return Value

bool|string[]

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

No description

Parameters

bool $state

Return Value

Definition

at line 151
bool isExported()

No description

Return Value

bool

at line 157
__clone()

No description

at line 166
abstract void resolveType(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 169
abstract void complete(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

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

No description

Parameters

Method $method
PhpGenerator $generator

Return Value

void

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

No description

Parameters

callable|null $notifier

Return Value

void

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

deprecated Use setType()

No description

Parameters

string|null $type

at line 192
string|null getClass() deprecated

deprecated Use getType()

No description

Return Value

string|null

at line 199
bool isDynamic() deprecated

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

No description

Return Value

bool

at line 206
string|null getImplement() deprecated

deprecated Use Nette\DI\Definitions\FactoryDefinition or AccessorDefinition

No description

Return Value

string|null

at line 213
isAutowired() deprecated

deprecated Use getAutowired()

No description

Traits

SmartObject