Documentation

ValueDefinition
in package
implements Definition, SelfResolvingDefinition

Definition of a value for dependency injection.

Tags
author

Matthieu Napoli matthieu@mnapoli.fr

Table of Contents

Interfaces

Definition
SelfResolvingDefinition
Describes a definition that can resolve itself.

Properties

$name  : string
Entry name.
$value  : mixed

Methods

__construct()  : mixed
__toString()  : string
getName()  : string
getValue()  : mixed
isResolvable()  : bool
Check if a definition can be resolved.
replaceNestedDefinitions()  : void
resolve()  : mixed
Resolve the definition and return the resulting value.
setName()  : void

Properties

Methods

__construct()

public __construct(mixed $value) : mixed
Parameters
$value : mixed

replaceNestedDefinitions()

public replaceNestedDefinitions(callable $replacer) : void
Parameters
$replacer : callable

setName()

public setName(string $name) : void
Parameters
$name : string

        
On this page

Search results