public function escapeOrder(string $order): string
    {
        $string = mb_strtoupper($order);
        return in_array($order, ['ASC', 'DESC'], true) ? $order : 'ASC';
    }
public function escapeOrder(string $order): string
    {
        $string = mb_strtoupper($order);
        return in_array($order, ['ASC', 'DESC'], true) ? $order : 'ASC';
    }
public function escapeOrder ( string $ order ) : string { $ string = mb_strtoupper ( $ order ) ; return in_array ( $ order , [ 'ASC' , 'DESC' ] , true ) ? $ order : 'ASC' ; }
Escapes order direction.

@since 160422 SQL utils.

@param string $order Order direction.

@return string Escaped order direction.
Escapes order direction .