mirror of
https://github.com/symfony/console.git
synced 2026-03-24 01:12:13 +01:00
31 lines
871 B
PHP
31 lines
871 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Component\Console\ArgumentResolver\ValueResolver;
|
|
|
|
use Symfony\Component\Console\Attribute\Reflection\ReflectionMember;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
|
|
/**
|
|
* Responsible for resolving the value of a Command argument based on its
|
|
* parameter metadata and the Command MapInput.
|
|
*
|
|
* @author Nicolas Grekas <p@tchwork.com>
|
|
* @author Robin Chalas <robin.chalas@gmail.com>
|
|
*/
|
|
interface ValueResolverInterface
|
|
{
|
|
/**
|
|
* Returns the possible value(s) for the argument.
|
|
*/
|
|
public function resolve(string $argumentName, InputInterface $input, ReflectionMember $member): iterable;
|
|
}
|