20 lines
563 B
PHP
20 lines
563 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Catalog\DTOs;
|
|
|
|
/**
|
|
* A price range slider's bounds and whether it's currently narrowed —
|
|
* built by ProductService::priceSliderBounds(), which owns the floor/ceil
|
|
* rounding and "is this actually a meaningful filter" comparison, so a
|
|
* controller (CategoryController, SearchController, ...) doesn't have to
|
|
* reimplement that rule itself.
|
|
*/
|
|
class PriceSliderBounds
|
|
{
|
|
public function __construct(
|
|
public readonly ?int $floor,
|
|
public readonly ?int $ceil,
|
|
public readonly bool $filtered,
|
|
) {}
|
|
}
|