public static function getHookCommand(string $hook) : string
    {
        if (!self::isValid($hook)) {
            throw new RuntimeException(sprintf('Hook \'%s\' is not supported', $hook));
        }
        return Hooks::getValidHooks()[$hook];
    }
public static function getHookCommand(string $hook) : string
    {
        if (!self::isValid($hook)) {
            throw new RuntimeException(sprintf('Hook \'%s\' is not supported', $hook));
        }
        return Hooks::getValidHooks()[$hook];
    }
public static function getHookCommand ( string $ hook ) : string { if ( ! self :: isValid ( $ hook ) ) { throw new RuntimeException ( sprintf ( 'Hook \'%s\' is not supported' , $ hook ) ) ; } return Hooks :: getValidHooks ( ) [ $ hook ] ; }
Returns hooks command class

@param  string $hook
@return string
Returns hooks command class