You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phpcommandline/Argument/Parser/IValueParser.class.php

28 lines
591 B
PHP

<?php
/**
* Déclare l'interface CommandLine\Argument\Parser\IValueParser
*/
namespace CommandLine\Argument\Parser;
/**
* Interface pour les parseurs
*
* @package CommandLine\Argument\Parser
*/
interface IValueParser {
/**
* Vérifie et transforme une valeur.
*
* @param string $val La valeur à transformer.
*
* @return mixed La valeur transformée.
*/
public function parseValue($val);
/**
* La description des contraintes de la valeur.
*
* @return string La description.
*/
public function getValueDescription();
}