for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiapi\commands;
class SearchCommand extends BaseCommand
{
protected static $handler = SearchHandler::class;
public $select;
public $where;
public $limit;
public function rules()
return [
['select', 'safe'],
['where', 'safe'],
['limit', 'number', 'max' => 100],
];
}
public function getQueryOptions()
'where' => $this->where,
'limit' => $this->limit ?: 25,