7
7
use hiqdev \php \billing \product \invoice \InvalidRepresentationException ;
8
8
use hiqdev \php \billing \product \invoice \RepresentationInterface ;
9
9
use hiqdev \php \billing \product \price \PriceTypeDefinition ;
10
- use hiqdev \php \billing \product \price \PriceTypeDefinitionInterface ;
11
10
use hiqdev \php \billing \product \quantity \QuantityFormatterInterface ;
12
11
use hiqdev \php \billing \product \quantity \QuantityFormatterNotFoundException ;
13
12
use hiqdev \php \billing \product \quantity \FractionQuantityData ;
@@ -32,10 +31,6 @@ public function addTariffType(TariffTypeDefinitionInterface $tariffTypeDefinitio
32
31
$ this ->tariffTypeDefinitions [] = $ tariffTypeDefinition ;
33
32
}
34
33
35
- /**
36
- * @return \Generator
37
- * @psalm-return \Generator<PriceTypeDefinitionInterface>
38
- */
39
34
public function priceTypes (): \Generator
40
35
{
41
36
foreach ($ this ->tariffTypeDefinitions as $ tariffTypeDefinition ) {
@@ -45,10 +40,6 @@ public function priceTypes(): \Generator
45
40
}
46
41
}
47
42
48
- /**
49
- * @param string $representationClass
50
- * @return RepresentationInterface[]
51
- */
52
43
public function getRepresentationsByType (string $ representationClass ): array
53
44
{
54
45
if (!class_exists ($ representationClass )) {
@@ -93,13 +84,6 @@ private function convertStringTypeToType(string $type): TypeInterface
93
84
return Type::anyId ($ type );
94
85
}
95
86
96
- /**
97
- * @param string $type - full type like 'overuse,lb_capacity_unit'
98
- * @param string $behaviorClassWrapper
99
- * @return BehaviorInterface
100
- * @throws BehaviorNotFoundException
101
- * @throws InvalidBehaviorException
102
- */
103
87
public function getBehavior (string $ type , string $ behaviorClassWrapper ): BehaviorInterface
104
88
{
105
89
if (!class_exists ($ behaviorClassWrapper )) {
@@ -176,10 +160,6 @@ public function getAggregate(string $type): AggregateInterface
176
160
throw new AggregateNotFoundException ('Aggregate was not found ' );
177
161
}
178
162
179
- /**
180
- * @return \Generator
181
- * @psalm-return \Generator<TariffTypeDefinitionInterface>
182
- */
183
163
public function getTariffTypeDefinitions (): \Generator
184
164
{
185
165
foreach ($ this ->tariffTypeDefinitions as $ tariffTypeDefinition ) {
0 commit comments