Kraken\Runtime\Command\Threads\ThreadsDestroyCommand::command PHP Method

command() protected method

protected command ( $params = [] )
    protected function command($params = [])
    {
        if (!isset($params['aliases']) || !isset($params['flags'])) {
            throw new RejectionException('Invalid params.');
        }
        return $this->runtime->getManager()->destroyThreads($params['aliases'], (int) $params['flags']);
    }
ThreadsDestroyCommand