| 1 |
<?php declare(strict_types=1); |
| 2 |
|
| 3 |
namespace Imagify\Dependencies\League\Container\Argument; |
| 4 |
|
| 5 |
use Imagify\Dependencies\League\Container\ContainerAwareInterface; |
| 6 |
use ReflectionFunctionAbstract; |
| 7 |
|
| 8 |
interface ArgumentResolverInterface extends ContainerAwareInterface |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Resolve an array of arguments to their concrete implementations. |
| 12 |
* |
| 13 |
* @param array $arguments |
| 14 |
* |
| 15 |
* @return array |
| 16 |
*/ |
| 17 |
public function resolveArguments(array $arguments) : array; |
| 18 |
|
| 19 |
/** |
| 20 |
* Resolves the correct arguments to be passed to a method. |
| 21 |
* |
| 22 |
* @param ReflectionFunctionAbstract $method |
| 23 |
* @param array $args |
| 24 |
* |
| 25 |
* @return array |
| 26 |
*/ |
| 27 |
public function reflectArguments(ReflectionFunctionAbstract $method, array $args = []) : array; |
| 28 |
} |
| 29 |
|