public function getHookConfig(string $hook) : Config\Hook
    {
        if (!Hook\Util::isValid($hook)) {
            throw new \InvalidArgumentException('Invalid hook name: ' . $hook);
        }
        return $this->hooks[$hook];
    }
public function getHookConfig(string $hook) : Config\Hook
    {
        if (!Hook\Util::isValid($hook)) {
            throw new \InvalidArgumentException('Invalid hook name: ' . $hook);
        }
        return $this->hooks[$hook];
    }
public function getHookConfig ( string $ hook ) : Config \ Hook { if ( ! Hook \ Util :: isValid ( $ hook ) ) { throw new \ InvalidArgumentException ( 'Invalid hook name: ' . $ hook ) ; } return $ this -> hooks [ $ hook ] ; }
Return config for given hook.

@param  string $hook
@return \CaptainHook\App\Config\Hook
@throws \InvalidArgumentException
Return config for given hook .