protected function invoke(string $hook, ...$arguments)
    {
        if (!method_exists($this, $hook)) {
            return null;
        }

        $result = $this->{$hook}(...$arguments);

        return $this->isInvokedResult($result) ? $result : null;
    }
protected function invoke(string $hook, ...$arguments)
    {
        if (!method_exists($this, $hook)) {
            return null;
        }

        $result = $this->{$hook}(...$arguments);

        return $this->isInvokedResult($result) ? $result : null;
    }
protected function invoke ( string $ hook , ... $ arguments ) { if ( ! method_exists ( $ this , $ hook ) ) { return null ; } $ result = $ this -> { $ hook } ( ... $ arguments ) ; return $ this -> isInvokedResult ( $ result ) ? $ result : null ; }
Invoke a hook.

@param string $hook
@param mixed ...$arguments
@return mixed|null
Invoke a hook .