PHP Class Crummy\Phlack\Bot\Mainframe\Adapter\AbstractAdapter

Inheritance: implements Crummy\Phlack\Bot\Mainframe\Adapter\AdapterInterface
Datei anzeigen Open project: mcrumm/phlack Class Usage Examples

Protected Properties

Property Type Description
$converter Crummy\Phlack\WebHook\Converter\StringConverter | Crummy\Phlack\WebHook\Converter\ConverterInterface
$mainframe Crummy\Phlack\Bot\Mainframe\Mainframe

Public Methods

Method Description
__construct ( Mainframe $mainframe, Crummy\Phlack\WebHook\Converter\ConverterInterface $converter = null )
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

Method Details

__construct() public method

public __construct ( Mainframe $mainframe, Crummy\Phlack\WebHook\Converter\ConverterInterface $converter = null )
$mainframe Crummy\Phlack\Bot\Mainframe\Mainframe
$converter Crummy\Phlack\WebHook\Converter\ConverterInterface

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

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

Property Details

$converter protected_oe property

protected StringConverter,Crummy\Phlack\WebHook\Converter|ConverterInterface,Crummy\Phlack\WebHook\Converter $converter
return Crummy\Phlack\WebHook\Converter\StringConverter | Crummy\Phlack\WebHook\Converter\ConverterInterface

$mainframe protected_oe property

protected Mainframe,Crummy\Phlack\Bot\Mainframe $mainframe
return Crummy\Phlack\Bot\Mainframe\Mainframe