| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class MultiplePrice implements PriceFormatterStrategy |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $delimiter; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $delimiter |
||
| 26 | */ |
||
| 27 | public function __construct(?string $delimiter = null) |
||
| 28 | { |
||
| 29 | $this->delimiter = $delimiter ?? Html::tag('br'); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Consumption $consumption |
||
| 34 | * @throws \yii\base\InvalidConfigException |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function showPrice(Consumption $consumption): string |
||
| 45 | } |
||
| 46 | } |
||
| 47 |