29 lines
829 B
PHP
29 lines
829 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace Automattic\WooCommerce\Internal\Vendor\League\Container\Argument;
|
||
|
|
||
|
use Automattic\WooCommerce\Internal\Vendor\League\Container\ContainerAwareInterface;
|
||
|
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;
|
||
|
}
|