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

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

Public Methods

Method 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

Protected Methods

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

Method Details

__construct() public method

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

attach() public method

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
return self

execute() protected method

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 method

public getConverter ( ) : Crummy\Phlack\WebHook\Converter\ConverterInterface
return Crummy\Phlack\WebHook\Converter\ConverterInterface

setMainframe() public method

public setMainframe ( Mainframe $mainframe ) : self
$mainframe Crummy\Phlack\Bot\Mainframe\Mainframe
return self