public function getHook($hook) {
        if ($this->hasHook($hook)) {
            return $this->_hooks[$hook];
        }

        throw new MissingHookException(sprintf('Hook %s does not exist', $hook));
    }
public function getHook($hook) {
        if ($this->hasHook($hook)) {
            return $this->_hooks[$hook];
        }

        throw new MissingHookException(sprintf('Hook %s does not exist', $hook));
    }
public function getHook ( $ hook ) { if ( $ this -> hasHook ( $ hook ) ) { return $ this -> _hooks [ $ hook ] ; } throw new MissingHookException ( sprintf ( 'Hook %s does not exist' , $ hook ) ) ; }
Return a specific hook based on class name.

@param string $hook
@return \Decoda\Hook
@throws \Decoda\Exception\MissingHookException
Return a specific hook based on class name .