PHP Class Crummy\Phlack\Bridge\Symfony\Console\BotCommand

Inheritance: extends Symfony\Component\Console\Command\Command, implements Crummy\Phlack\Bot\Mainframe\Adapter\AdapterInterface
Afficher le fichier Open project: mcrumm/phlack

Méthodes publiques

Méthode Description
__construct ( ConsoleAdapter $adapter, string $name = 'bot_command' )
attach ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface | callable $matcher = null, integer $priority ) : self
getConverter ( ) : Crummy\Phlack\WebHook\Converter\ConverterInterface
setMainframe ( Mainframe $mainframe ) : self

Méthodes protégées

Méthode Description
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Method Details

__construct() public méthode

public __construct ( ConsoleAdapter $adapter, string $name = 'bot_command' )
$adapter ConsoleAdapter
$name string

attach() public méthode

public attach ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface | callable $matcher = null, integer $priority ) : self
$bot Crummy\Phlack\Bot\BotInterface
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface | callable
$priority integer
Résultat self

execute() protected méthode

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getConverter() public méthode

public getConverter ( ) : Crummy\Phlack\WebHook\Converter\ConverterInterface
Résultat Crummy\Phlack\WebHook\Converter\ConverterInterface

setMainframe() public méthode

public setMainframe ( Mainframe $mainframe ) : self
$mainframe Crummy\Phlack\Bot\Mainframe\Mainframe
Résultat self