2020-11-05 16:21:38 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2020-11-18 21:54:20 +00:00
|
|
|
namespace Automattic\WooCommerce\Vendor\League\Container\Argument;
|
2020-11-05 16:21:38 +00:00
|
|
|
|
2020-11-18 21:54:20 +00:00
|
|
|
use Automattic\WooCommerce\Vendor\League\Container\ContainerAwareInterface;
|
2020-11-05 16:21:38 +00:00
|
|
|
use ReflectionFunctionAbstract;
|
|
|
|
|
|
|
|
interface ArgumentResolverInterface extends ContainerAwareInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Resolve an array of arguments to their concrete implementations.
|
|
|
|
*
|
|
|
|
* @param array $arguments
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function resolveArguments(array $arguments) : array;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Resolves the correct arguments to be passed to a method.
|
|
|
|
*
|
|
|
|
* @param ReflectionFunctionAbstract $method
|
|
|
|
* @param array $args
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function reflectArguments(ReflectionFunctionAbstract $method, array $args = []) : array;
|
|
|
|
}
|