PHP Class Ptondereau\PackMe\Commands\AbstractBaseCommand

Afficher le fichier Open project: ptondereau/laravel-packme Class Usage Examples

Protected Properties

Свойство Type Description
$helperSet Symfony\Component\Console\Helper\HelperSet
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Console\Helper\HelperSet $helperSet ) BaseCommand constructor.

Méthodes protégées

Méthode Description
ask ( string $question, null $default = null ) : string
askAndValidate ( string $question, Closure $validator, null $attempts = null, null $default = null ) : string

Private Methods

Méthode Description
getErrorOutput ( ) : Symfony\Component\Console\Output\OutputInterface

Method Details

__construct() public méthode

BaseCommand constructor.
public __construct ( Symfony\Component\Console\Helper\HelperSet $helperSet )
$helperSet Symfony\Component\Console\Helper\HelperSet

ask() protected méthode

protected ask ( string $question, null $default = null ) : string
$question string
$default null
Résultat string

askAndValidate() protected méthode

protected askAndValidate ( string $question, Closure $validator, null $attempts = null, null $default = null ) : string
$question string
$validator Closure
$attempts null
$default null
Résultat string

Property Details

$helperSet protected_oe property

protected HelperSet,Symfony\Component\Console\Helper $helperSet
Résultat Symfony\Component\Console\Helper\HelperSet

$input protected_oe property

protected InputInterface,Symfony\Component\Console\Input $input
Résultat Symfony\Component\Console\Input\InputInterface

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
Résultat Symfony\Component\Console\Output\OutputInterface