PHP Класс Acacha\Llum\Console\GithubRepoCommand

Наследование: extends LlumCommand, use trait GithubCommand
Показать файл Открыть проект

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

Свойство Тип Описание
$api Acacha\Llum\Github\GithubAPI Github api service class.
$commandDescription string Command description.
$commandName string Command name.
$method string Method to execute.
$parser Acacha\Llum\Parser\LlumRCParser Llum rc file parser.

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

Метод Описание
__construct ( GithubAPI $api, LlumRCParser $parser ) GithubRepoCommand constructor.
configure ( ) Configure command.
getCredentials ( Symfony\Component\Console\Output\OutputInterface $output ) : array Get credentials.
githubCreateRepo ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Github create repo command.

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

Метод Описание
repoDescription ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string Obtain repo description.
repoName ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string Obtain repo name.
showError ( GuzzleHttp\Exception\ClientException $ce, Symfony\Component\Console\Output\OutputInterface $output ) Show error.

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

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

GithubRepoCommand constructor.
public __construct ( GithubAPI $api, LlumRCParser $parser )
$api Acacha\Llum\Github\GithubAPI
$parser Acacha\Llum\Parser\LlumRCParser

configure() публичный метод

Configure command.
public configure ( )

getCredentials() публичный метод

Get credentials.
public getCredentials ( Symfony\Component\Console\Output\OutputInterface $output ) : array
$output Symfony\Component\Console\Output\OutputInterface
Результат array

githubCreateRepo() публичный метод

Github create repo command.
public githubCreateRepo ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

repoDescription() защищенный метод

Obtain repo description.
protected repoDescription ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string
$input Symfony\Component\Console\Input\InputInterface
Результат mixed | string

repoName() защищенный метод

Obtain repo name.
protected repoName ( Symfony\Component\Console\Input\InputInterface $input ) : mixed | string
$input Symfony\Component\Console\Input\InputInterface
Результат mixed | string

showError() защищенный метод

Show error.
protected showError ( GuzzleHttp\Exception\ClientException $ce, Symfony\Component\Console\Output\OutputInterface $output )
$ce GuzzleHttp\Exception\ClientException
$output Symfony\Component\Console\Output\OutputInterface

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

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

Github api service class.
protected GithubAPI,Acacha\Llum\Github $api
Результат Acacha\Llum\Github\GithubAPI

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

Command description.
protected string $commandDescription
Результат string

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

Command name.
protected string $commandName
Результат string

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

Method to execute.
protected string $method
Результат string

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

Llum rc file parser.
protected LlumRCParser,Acacha\Llum\Parser $parser
Результат Acacha\Llum\Parser\LlumRCParser