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

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

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

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

        return $this;
    }
public function setCallbacks ( array $ callables ) { $ this -> callbacks = [ ] ; foreach ( $ callables as $ callable ) { if ( is_callable ( $ callable ) ) { $ this -> addCallback ( $ callable ) ; } } return $ this ; }
Set the callbacks used to assign the current language to.

@param callable[] $callbacks The callable to be called.

@return self
Set the callbacks used to assign the current language to .