| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class MultiplePrice implements PriceFormatterStrategy |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $delimiter; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $delimiter |
||
| 19 | */ |
||
| 20 | public function __construct(?string $delimiter = null) |
||
| 21 | { |
||
| 22 | $this->delimiter = $delimiter ?? Html::tag('br'); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param Consumption $consumption |
||
| 27 | * @return string |
||
| 28 | * @throws \yii\base\InvalidConfigException |
||
| 29 | */ |
||
| 30 | public function showPrice(Consumption $consumption): string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |