Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Injected Class Reference

Attribute for dependency injection. More...

+ Inheritance diagram for Injected:

Public Member Functions

 __construct (?string $name=null, ?string $code=null)
 Injected constructor.
 
- Public Member Functions inherited from BaseAttribute
 __construct ()
 
 asAnnotation ()
 
 getNamespace ()
 
 __toString ()
 
- Public Member Functions inherited from BaseAnnotationTrait
 getProperties ()
 
 getPropertiesAndValues ($props=NULL)
 
 isSameAs ($annot)
 

Data Fields

string $name
 
string $code
 

Additional Inherited Members

- Protected Member Functions inherited from BaseAttribute
 getDefaultParameters ()
 

Detailed Description

Attribute for dependency injection.

usages :

  • #[Injected]
  • #[Injected(name)]
  • #[Injected(name,code)]
Author
jc
Version
1.0.0
Since
Ubiquity 2.1.0

Definition at line 21 of file Injected.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ?string  $name = null,
?string  $code = null 
)

Injected constructor.

Parameters
null | string$name
null | string$code

Definition at line 31 of file Injected.php.

Field Documentation

◆ $code

string $code

Definition at line 24 of file Injected.php.

◆ $name

string $name

Definition at line 23 of file Injected.php.


The documentation for this class was generated from the following file: