PHP Class Crummy\Phlack\Bot\ExpressionBot

Inheritance: extends AbstractBot
Afficher le fichier Open project: mcrumm/phlack

Protected Properties

Свойство Type Description
$language Symfony\Component\ExpressionLanguage\ExpressionLanguage

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

evaluate() protected méthode

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

execute() public méthode

public execute ( Crummy\Phlack\WebHook\CommandInterface $command ) : Reply
$command Crummy\Phlack\WebHook\CommandInterface
Résultat Crummy\Phlack\WebHook\Reply\Reply

getValues() protected méthode

protected getValues ( Crummy\Phlack\WebHook\CommandInterface $command ) : array
$command Crummy\Phlack\WebHook\CommandInterface
Résultat array

Property Details

$language protected_oe property

protected ExpressionLanguage,Symfony\Component\ExpressionLanguage $language
Résultat Symfony\Component\ExpressionLanguage\ExpressionLanguage