for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/**
* Created by Vitaly Iegorov <[email protected]>.
* on 07.08.16 at 15:46
*/
namespace samsonframework\container\annotation;
use samsonframework\container\configurator\InjectableArgumentConfigurator;
* Method argument injection annotation.
*
* @author Vitaly Egorov <[email protected]>
* @Annotation
class InjectArgument extends InjectableArgumentConfigurator
{
* InjectArgument constructor.
* @param array $valueOrValues
* @throws \InvalidArgumentException
public function __construct(array $valueOrValues)
// Pass to injectable argument configurator
parent::__construct(key($valueOrValues), $valueOrValues[key($valueOrValues)]);
}