Update PHPDoc.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
parent
114f1a66e1
commit
212809a1b8
@ -10,6 +10,11 @@ namespace PMA\DI;
|
||||
|
||||
require_once 'libraries/di/ReflectorItem.class.php';
|
||||
|
||||
/**
|
||||
* Factory manager
|
||||
*
|
||||
* @package PMA\DI
|
||||
*/
|
||||
class FactoryItem extends ReflectorItem
|
||||
{
|
||||
|
||||
@ -17,7 +22,7 @@ class FactoryItem extends ReflectorItem
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param mixed $definition
|
||||
* @param mixed $definition
|
||||
*/
|
||||
function __construct(Container $container, $definition)
|
||||
{
|
||||
@ -27,7 +32,7 @@ class FactoryItem extends ReflectorItem
|
||||
/**
|
||||
* Construct an instance
|
||||
*
|
||||
* @param array $params
|
||||
* @param array $params Paramters
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($params = array())
|
||||
|
||||
@ -10,6 +10,11 @@ namespace PMA\DI;
|
||||
|
||||
require_once 'libraries/di/Item.int.php';
|
||||
|
||||
/**
|
||||
* Reflector manager
|
||||
*
|
||||
* @package PMA\DI
|
||||
*/
|
||||
abstract class ReflectorItem implements Item
|
||||
{
|
||||
|
||||
@ -23,7 +28,7 @@ abstract class ReflectorItem implements Item
|
||||
* Constructor
|
||||
*
|
||||
* @param Container $container
|
||||
* @param mixed $definition
|
||||
* @param mixed $definition
|
||||
*/
|
||||
public function __construct(Container $container, $definition)
|
||||
{
|
||||
@ -34,7 +39,7 @@ abstract class ReflectorItem implements Item
|
||||
/**
|
||||
* Invoke the reflector with given parameters
|
||||
*
|
||||
* @param array $params
|
||||
* @param array $params Parameters
|
||||
* @return mixed
|
||||
*/
|
||||
protected function invoke($params = array())
|
||||
@ -68,8 +73,9 @@ abstract class ReflectorItem implements Item
|
||||
* Getting required arguments with given parameters
|
||||
*
|
||||
* @param \ReflectionParameter[] $required
|
||||
* @param array $params
|
||||
* @return array
|
||||
* @param array $params
|
||||
*
|
||||
*@return array
|
||||
*/
|
||||
private function _resolveArgs($required, $params = array())
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user