src/Hook/Hook.php
protected function addClassEvent($hook, $class, $priority, $accepted_args)
    {
        $callback = $this->buildClassEventCallback($class, $hook);

        $this->addEventListener($hook, $callback, $priority, $accepted_args);

        return $callback;
    }
protected function addClassEvent($hook, $class, $priority, $accepted_args)
    {
        $callback = $this->buildClassEventCallback($class, $hook);

        $this->addEventListener($hook, $callback, $priority, $accepted_args);

        return $callback;
    }
protected function addClassEvent ( $ hook , $ class , $ priority , $ accepted_args ) { $ callback = $ this -> buildClassEventCallback ( $ class , $ hook ) ; $ this -> addEventListener ( $ hook , $ callback , $ priority , $ accepted_args ) ; return $ callback ; }
Prepare the hook callback for use in a class method.

@param string $hook
@param string $class
@param int    $priority
@param int    $accepted_args

@throws BadMethodCallException

@return array
Prepare the hook callback for use in a class method .