N98\Util\Console\Helper\ParameterHelper::askEmail PHP Метод

askEmail() публичный Метод

public askEmail ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $argumentName = 'email' ) : string
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$argumentName string
Результат string
    public function askEmail(InputInterface $input, OutputInterface $output, $argumentName = 'email')
    {
        $constraints = new Constraints\Collection(array('email' => array(new Constraints\NotBlank(), new Constraints\Email())));
        return $this->validateArgument($output, $argumentName, $input->getArgument($argumentName), $constraints);
    }