| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class PriceNameResolver implements PriceNameResolverInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $pricePropertyPrefix; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $pricePropertyPrefix |
||
| 24 | */ |
||
| 25 | public function __construct(string $pricePropertyPrefix) |
||
| 26 | { |
||
| 27 | $this->pricePropertyPrefix = $pricePropertyPrefix; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function resolveMinPrice(): string |
||
| 34 | { |
||
| 35 | return 'min_' . $this->pricePropertyPrefix; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function resolveMaxPrice(): string |
||
| 44 | } |
||
| 45 | } |
||
| 46 |