for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace KGzocha\Searcher\Criteria;
/**
* @author Krzysztof Gzocha <[email protected]>
*/
class OrderByCriteria implements OrderByCriteriaInterface
{
* @var null|string
private $orderBy;
* @param null|string $orderBy
public function __construct($orderBy = null)
$this->orderBy = $orderBy;
}
* @return null|string
public function getOrderBy()
return $this->orderBy;
public function setOrderBy($orderBy)
* {@inheritdoc}
public function shouldBeApplied()
return $this->orderBy != null;
$this->orderBy
null|string
null
!==