for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Alchemy\Rest\Request;
class Sort
{
/**
* @var string
*/
private $fieldName;
private $direction;
* @param string $fieldName
* @param string $direction
public function __construct($fieldName, $direction)
$this->fieldName = $fieldName;
$this->direction = strtoupper($direction);
}
* @return string
public function getFieldName()
return $this->fieldName;
public function getDirection()
return $this->direction;