1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<?php
namespace hji\membership\models\data;
class Sorting
{
protected $field;
protected $order;
public function __construct($properties)
{
$properties = (array)$properties;
$this->field = isset($properties['field']) ? $properties['field'] : null;
$this->order = isset($properties['order']) ? $properties['order'] : null;
}
public function getFiled()
{
return $this->field;
}
public function getOrder()
{
return $this->order;
}
}