for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
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(string $orderBy = null)
$this->orderBy = $orderBy;
}
* @return null|string
public function getOrderBy()
return $this->orderBy;
public function setOrderBy(string $orderBy = null)
* {@inheritdoc}
public function shouldBeApplied(): bool
return $this->orderBy !== null && !empty($this->orderBy);