public function setCallbacks(array $callables)
    {
        $this->callbacks = [];

        foreach ($callables as $callable) {
            if (is_callable($callable)) {
                $this->addCallback($callable);
            }
        }

        return $this;
    }