PHP Class Crummy\Phlack\Bot\ExpressionBot

Inheritance: extends AbstractBot
Mostra file Open project: mcrumm/phlack

Protected Properties

Property Type Description
$language Symfony\Component\ExpressionLanguage\ExpressionLanguage

Public Methods

Method Description
__construct ( string $commandName = '/expr', Symfony\Component\ExpressionLanguage\ExpressionLanguage $language = null )
execute ( Crummy\Phlack\WebHook\CommandInterface $command ) : Reply

Protected Methods

Method Description
evaluate ( Crummy\Phlack\WebHook\CommandInterface $command, array $values = [] ) : string
getValues ( Crummy\Phlack\WebHook\CommandInterface $command ) : array

Method Details

__construct() public method

public __construct ( string $commandName = '/expr', Symfony\Component\ExpressionLanguage\ExpressionLanguage $language = null )
$commandName string
$language Symfony\Component\ExpressionLanguage\ExpressionLanguage

evaluate() protected method

protected evaluate ( Crummy\Phlack\WebHook\CommandInterface $command, array $values = [] ) : string
$command Crummy\Phlack\WebHook\CommandInterface
$values array
return string

execute() public method

public execute ( Crummy\Phlack\WebHook\CommandInterface $command ) : Reply
$command Crummy\Phlack\WebHook\CommandInterface
return Crummy\Phlack\WebHook\Reply\Reply

getValues() protected method

protected getValues ( Crummy\Phlack\WebHook\CommandInterface $command ) : array
$command Crummy\Phlack\WebHook\CommandInterface
return array

Property Details

$language protected_oe property

protected ExpressionLanguage,Symfony\Component\ExpressionLanguage $language
return Symfony\Component\ExpressionLanguage\ExpressionLanguage