PHP Класс Ptondereau\PackMe\Commands\CreateCommand

Наследование: extends AbstractBaseCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$crafter Ptondereau\PackMe\Crafters\CrafterInterface Crafter.

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
askForAuthor ( string $author = 'Author Name <[email protected]>' ) : string
askForDescription ( boolean | string $description = false ) : string
askForPackageName ( string $package = 'vendor/package' ) : string

Приватные методы

Метод Описание
isValidEmail ( $email ) : boolean Check if a given email is a good email.
parseAuthorString ( string $author ) : array Parse the author string.

Описание методов

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

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 __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 askForAuthor ( string $author = 'Author Name <[email protected]>' ) : string
$author string
Результат string

askForDescription() защищенный Метод

protected askForDescription ( boolean | string $description = false ) : string
$description boolean | string
Результат string

askForPackageName() защищенный Метод

protected askForPackageName ( string $package = 'vendor/package' ) : string
$package string
Результат string

Описание свойств

$crafter защищенное свойство

Crafter.
protected CrafterInterface,Ptondereau\PackMe\Crafters $crafter
Результат Ptondereau\PackMe\Crafters\CrafterInterface