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/src/CommandLine/Argument/Parser/IParser.php

28 lines
606 B
PHP

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