PHP Class Ptondereau\PackMe\Commands\CreateCommand

Inheritance: extends AbstractBaseCommand
Afficher le fichier Open project: ptondereau/laravel-packme

Protected Properties

Свойство Type Description
$crafter Ptondereau\PackMe\Crafters\CrafterInterface Crafter.

Méthodes publiques

Méthode Description
__construct ( Ptondereau\PackMe\Crafters\CrafterInterface $crafter, Symfony\Component\Console\Helper\HelperSet $helperSet ) CreateCommand constructor.
__invoke ( $dir, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Méthodes protégées

Méthode Description
askForAuthor ( string $author = 'Author Name <[email protected]>' ) : string
askForDescription ( boolean | string $description = false ) : string
askForPackageName ( string $package = 'vendor/package' ) : string

Private Methods

Méthode Description
isValidEmail ( $email ) : boolean Check if a given email is a good email.
parseAuthorString ( string $author ) : array Parse the author string.

Method Details

__construct() public méthode

CreateCommand constructor.
public __construct ( Ptondereau\PackMe\Crafters\CrafterInterface $crafter, Symfony\Component\Console\Helper\HelperSet $helperSet )
$crafter Ptondereau\PackMe\Crafters\CrafterInterface
$helperSet Symfony\Component\Console\Helper\HelperSet

__invoke() public méthode

public __invoke ( $dir, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

askForAuthor() protected méthode

protected askForAuthor ( string $author = 'Author Name <[email protected]>' ) : string
$author string
Résultat string

askForDescription() protected méthode

protected askForDescription ( boolean | string $description = false ) : string
$description boolean | string
Résultat string

askForPackageName() protected méthode

protected askForPackageName ( string $package = 'vendor/package' ) : string
$package string
Résultat string

Property Details

$crafter protected_oe property

Crafter.
protected CrafterInterface,Ptondereau\PackMe\Crafters $crafter
Résultat Ptondereau\PackMe\Crafters\CrafterInterface