| Total Complexity | 2 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Search extends AbstractRequest |
||
| 9 | { |
||
| 10 | use Paginatable; |
||
| 11 | |||
| 12 | /** Sorting direction */ |
||
| 13 | public const SORTING_DIRECTION_AUTO = 'auto'; |
||
| 14 | public const SORTING_DIRECTION_ASC = 'asc'; |
||
| 15 | public const SORTING_DIRECTION_DESC = 'desc'; |
||
| 16 | |||
| 17 | /** Sorting order */ |
||
| 18 | public const SORTING_ORDER_NAME = 'name'; |
||
| 19 | public const SORTING_ORDER_CMC = 'cmc'; |
||
| 20 | public const SORTING_ORDER_SET = 'set'; |
||
| 21 | public const SORTING_ORDER_RARITY = 'rarity'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $order = self::SORTING_ORDER_NAME; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $dir = self::SORTING_DIRECTION_AUTO; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $query; |
||
| 37 | |||
| 38 | public function __construct(string $query) |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getQuery(): string |
||
| 57 |