|
6 | 6 | use hiqdev\php\billing\product\Exception\AggregateNotDefinedException; |
7 | 7 | use hiqdev\php\billing\product\behavior\BehaviorPriceTypeDefinitionCollection; |
8 | 8 | use hiqdev\php\billing\product\invoice\InvoiceRepresentationCollection; |
9 | | -use hiqdev\php\billing\product\behavior\HasBehaviorsInterface; |
10 | 9 | use hiqdev\php\billing\product\quantity\InvalidQuantityFormatterException; |
11 | 10 | use hiqdev\php\billing\product\quantity\QuantityFormatterDefinition; |
12 | 11 | use hiqdev\php\billing\product\quantity\QuantityFormatterFactory; |
|
21 | 20 | * @template T of PriceTypeDefinitionCollectionInterface |
22 | 21 | * @psalm-consistent-templates |
23 | 22 | */ |
24 | | -class PriceTypeDefinition implements HasBehaviorsInterface |
| 23 | +class PriceTypeDefinition implements PriceTypeDefinitionInterface |
25 | 24 | { |
26 | 25 | private UnitInterface $unit; |
27 | 26 |
|
@@ -90,9 +89,8 @@ public function quantityFormatter(string $formatterClass, $fractionUnit = null): |
90 | 89 | return $this; |
91 | 90 | } |
92 | 91 |
|
93 | | - public function createQuantityFormatter( |
94 | | - FractionQuantityData $data, |
95 | | - ): QuantityFormatterInterface { |
| 92 | + public function createQuantityFormatter(FractionQuantityData $data): QuantityFormatterInterface |
| 93 | + { |
96 | 94 | return QuantityFormatterFactory::create( |
97 | 95 | $this->getUnit()->createExternalUnit(), |
98 | 96 | $this->quantityFormatterDefinition, |
@@ -154,11 +152,7 @@ public function hasBehavior(string $behaviorClassName): bool |
154 | 152 | } |
155 | 153 |
|
156 | 154 | /** |
157 | | - * це параметер визначає агрегатну функцію яка застосовується для щоденно записаних ресурсів щоб визнизначти |
158 | | - * місячне споживання за яке потрібно пробілити клієнта |
159 | | - * |
160 | | - * @param AggregateInterface $aggregate |
161 | | - * @return self |
| 155 | + * @inerhitDoc |
162 | 156 | */ |
163 | 157 | public function aggregation(AggregateInterface $aggregate): self |
164 | 158 | { |
|
0 commit comments