| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/ |
Upload File : |
<?php
namespace IAWP;
use IAWP\Tables\Columns\Column;
/** @internal */
class Sort_Configuration
{
public const ASCENDING = 'asc';
public const DESCENDING = 'desc';
private Column $column;
private string $direction;
public function __construct(Column $column, ?string $direction = null)
{
$this->column = $column;
$this->direction = self::DESCENDING;
if ($direction === self::ASCENDING || $direction === self::DESCENDING) {
$this->direction = $direction;
}
}
public function column() : string
{
return $this->column->id();
}
public function the_column() : Column
{
return $this->column;
}
public function direction() : string
{
return $this->direction;
}
}