protected addMethod ( String $alias, String $method ) : SubscriberCommand | ||
$alias | String | Queue alias |
$method | String | Queue method |
return | SubscriberCommand | self Object |
protected function addMethod($alias, $method)
{
if (!is_callable(array($this, $method))) {
throw new MethodNotFoundException($alias);
}
$this->methods[$alias] = $method;
return $this;
}