Documentation

Target
in package

FinalYes

An attribute to tell how a dependency is used and hint named autowiring aliases.

Tags
author

Nicolas Grekas p@tchwork.com

Attributes
#[Attribute]
\Attribute::TARGET_PARAMETER

Table of Contents

Properties

$name  : string|null

Methods

__construct()  : mixed
getParsedName()  : string
parseName()  : string

Properties

$name

public string|null $name = null

Methods

__construct()

public __construct([string|null $name = null ]) : mixed
Parameters
$name : string|null = null

getParsedName()

public getParsedName() : string
Return values
string

parseName()

public static parseName(ReflectionParameter $parameter[, self|null &$attribute = null ][, string|null &$parsedName = null ]) : string
Parameters
$parameter : ReflectionParameter
$attribute : self|null = null
$parsedName : string|null = null
Return values
string

        
On this page

Search results