Menu

## StringDefinition
in package
implements Definition, SelfResolvingDefinition

StringDefinition.php : 17

Definition of a string composed of other strings.

##### Tags

since
  5.0
author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Interfaces

Definition
SelfResolvingDefinition
  Describes a definition that can resolve itself.

#### Properties

$expression : string
$name : string
  Entry name.

#### Methods

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

### Properties

#### $expression

StringDefinition.php : 23
`private string $expression`

#### $name

StringDefinition.php : 20

Entry name.

`private string $name = ''`

### Methods

#### __construct()

StringDefinition.php : 22
`public __construct(string $expression) : mixed`

##### Parameters

$expression : string

#### __toString()

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

##### Return values

string

#### getExpression()

StringDefinition.php : 37
`public getExpression() : string`

##### Return values

string

#### getName()

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

##### Return values

string

#### isResolvable()

StringDefinition.php : 47

Check if a definition can be resolved.

`public isResolvable(ContainerInterface $container) : bool`

##### Parameters

$container : ContainerInterface

##### Return values

bool

#### replaceNestedDefinitions()

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

##### Parameters

$replacer : callable

#### resolve()

StringDefinition.php : 42

Resolve the definition and return the resulting value.

`public resolve(ContainerInterface $container) : string`

##### Parameters

$container : ContainerInterface

##### Return values

string

#### resolveExpression()

StringDefinition.php : 65

Resolve a string expression.

`public static resolveExpression(string $entryName, string $expression, ContainerInterface $container) : string`

##### Parameters

$entryName : string
$expression : string
$container : ContainerInterface

##### Return values

string

#### setName()

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

##### Parameters

$name : string

## Search results