oont-contents/plugins/wp-rocket/inc/Dependencies/League/Container/Argument/ArgumentResolverInterface.php
2025-02-08 15:10:23 +01:00

28 lines
797 B
PHP

<?php declare(strict_types=1);
namespace WP_Rocket\Dependencies\League\Container\Argument;
use WP_Rocket\Dependencies\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;
}