| Server IP : 127.0.1.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.52 (Ubuntu) System : Linux sealall 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 User : devops ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/domains/sealall.ca/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;
}
}