Menu

## InstanceDefinition
in package
implements Definition

InstanceDefinition.php : 13

Defines injections on an existing class instance.

##### Tags

since
  5.0
author

  Matthieu Napoli matthieu@mnapoli.fr

### Table of Contents

#### Interfaces

Definition

#### Properties

$instance : object
$objectDefinition : ObjectDefinition

#### Methods

__construct() : mixed
__toString() : string
getInstance() : object
getName() : string
getObjectDefinition() : ObjectDefinition
replaceNestedDefinitions() : void
setName() : void

### Properties

#### $instance

InstanceDefinition.php : 19
`private object $instance`

#### $objectDefinition

InstanceDefinition.php : 20
`private ObjectDefinition $objectDefinition`

### Methods

#### __construct()

InstanceDefinition.php : 18
`public __construct(object $instance, ObjectDefinition $objectDefinition) : mixed`

##### Parameters

$instance : object

  Instance on which to inject dependencies.

$objectDefinition : ObjectDefinition

#### __toString()

InstanceDefinition.php : 50
`public __toString() : string`

##### Return values

string

#### getInstance()

InstanceDefinition.php : 35
`public getInstance() : object`

##### Return values

object

#### getName()

InstanceDefinition.php : 24
`public getName() : string`

##### Return values

string

#### getObjectDefinition()

InstanceDefinition.php : 40
`public getObjectDefinition() : ObjectDefinition`

##### Return values

ObjectDefinition

#### replaceNestedDefinitions()

InstanceDefinition.php : 45
`public replaceNestedDefinitions(callable $replacer) : void`

##### Parameters

$replacer : callable

#### setName()

InstanceDefinition.php : 30
`public setName(string $name) : void`

##### Parameters

$name : string

## Search results