Menu

## Reference
in package
implements Definition, SelfResolvingDefinition

Reference.php : 14

Represents a reference to another entry.

##### 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.
$targetEntryName : string

#### Methods

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

### Properties

#### $name

Reference.php : 17

Entry name.

`private string $name = ''`

#### $targetEntryName

Reference.php : 23
`private string $targetEntryName`

### Methods

#### __construct()

Reference.php : 22
`public __construct(string $targetEntryName) : mixed`

##### Parameters

$targetEntryName : string

  Name of the target entry

#### __toString()

Reference.php : 57
`public __toString() : string`

##### Return values

string

#### getName()

Reference.php : 27
`public getName() : string`

##### Return values

string

#### getTargetEntryName()

Reference.php : 37
`public getTargetEntryName() : string`

##### Return values

string

#### isResolvable()

Reference.php : 47

Check if a definition can be resolved.

`public isResolvable(ContainerInterface $container) : bool`

##### Parameters

$container : ContainerInterface

##### Return values

bool

#### replaceNestedDefinitions()

Reference.php : 52
`public replaceNestedDefinitions(callable $replacer) : void`

##### Parameters

$replacer : callable

#### resolve()

Reference.php : 42

Resolve the definition and return the resulting value.

`public resolve(ContainerInterface $container) : mixed`

##### Parameters

$container : ContainerInterface

#### setName()

Reference.php : 32
`public setName(string $name) : void`

##### Parameters

$name : string

## Search results