Predis\PubSub\DispatcherLoop::assertCallback PHP Method

assertCallback() protected method

Checks if the passed argument is a valid callback.
protected assertCallback ( mixed $callable )
$callable mixed A callback.
    protected function assertCallback($callable)
    {
        if (!is_callable($callable)) {
            throw new \InvalidArgumentException('The given argument must be a callable object.');
        }
    }