File "OrderByItem.php"
Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Query/AST/OrderByItem.php
File size: 528 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare (strict_types=1);
namespace MailPoetVendor\Doctrine\ORM\Query\AST;
if (!defined('ABSPATH')) exit;
use function strtoupper;
class OrderByItem extends Node
{
public $expression;
public $type;
public function __construct($expression)
{
$this->expression = $expression;
}
public function isAsc()
{
return strtoupper($this->type) === 'ASC';
}
public function isDesc()
{
return strtoupper($this->type) === 'DESC';
}
public function dispatch($sqlWalker)
{
return $sqlWalker->walkOrderByItem($this);
}
}