abstract class Definition

Definition used by ContainerBuilder.

Methods

setName(string $name)

No description

string|null
getName()

No description

bool
isAnonymous()

No description

string
getDescriptor()

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|array $state = true)

No description

bool|array
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 36
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 47
final string|null getName()

No description

Return Value

string|null

at line 53
final bool isAnonymous()

No description

Return Value

bool

at line 59
string getDescriptor()

No description

Return Value

string

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

No description

Parameters

string|null $type

Return Value

Definition

at line 98
final string|null getType()

No description

Return Value

string|null

at line 104
final Definition setTags(array $tags)

No description

Parameters

array $tags

Return Value

Definition

at line 111
final array getTags()

No description

Return Value

array

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

No description

Parameters

string $tag
mixed $attr

Return Value

Definition

at line 124
final mixed getTag(string $tag)

No description

Parameters

string $tag

Return Value

mixed

at line 130
final Definition setAutowired(bool|string|array $state = true)

No description

Parameters

bool|string|array $state

Return Value

Definition

at line 144
final bool|array getAutowired()

No description

Return Value

bool|array

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

No description

Parameters

bool $state

Return Value

Definition

at line 156
bool isExported()

No description

Return Value

bool

at line 162
__clone()

No description

at line 171
abstract void resolveType(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

at line 174
abstract void complete(Resolver $resolver)

No description

Parameters

Resolver $resolver

Return Value

void

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

No description

Parameters

Method $method
PhpGenerator $generator

Return Value

void

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

No description

Parameters

callable|null $notifier

Return Value

void

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

deprecated Use setType()

No description

Parameters

string|null $type

at line 197
string|null getClass() deprecated

deprecated Use getType()

No description

Return Value

string|null

at line 204
bool isDynamic() deprecated

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

No description

Return Value

bool

at line 212
string|null getImplement() deprecated

deprecated Use Nette\DI\Definitions\FactoryDefinition or AccessorDefinition

No description

Return Value

string|null

at line 220
isAutowired() deprecated

deprecated Use getAutowired()

No description

Traits

Strict class for better experience.