Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Search/Query/SqlOrder.php
<?php

namespace XF\Search\Query;

class
SqlOrder
{
    protected
$order;
    protected
$tables = [];

    public function
__construct($order, TableReference $table = null)
    {
       
$this->order = $order;

        if (
$table)
        {
           
$this->tables[$table->getAlias()] = $table;
        }
    }

    public function
addTable(TableReference $table)
    {
       
$this->tables[$table->getAlias()] = $table;
    }

    public function
getOrder()
    {
        return
$this->order;
    }

    public function
getTables()
    {
        return
$this->tables;
    }
}