File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1414use hiqdev \php \billing \product \Domain \Model \Unit \FractionUnitInterface ;
1515use hiqdev \php \billing \product \Domain \Model \Unit \UnitInterface ;
1616use hiqdev \php \billing \product \quantity \QuantityFormatterInterface ;
17+ use hiqdev \php \billing \product \TariffTypeDefinitionInterface ;
1718use hiqdev \php \billing \type \TypeInterface ;
1819
1920/**
@@ -173,4 +174,9 @@ public function getAggregate(): AggregateInterface
173174
174175 return $ this ->aggregate ;
175176 }
177+
178+ public function getTariffTypeDefinition (): TariffTypeDefinitionInterface
179+ {
180+ return $ this ->parent ->end ();
181+ }
176182}
Original file line number Diff line number Diff line change 88use hiqdev \php \billing \product \invoice \InvoiceRepresentationCollection ;
99use hiqdev \php \billing \product \quantity \FractionQuantityData ;
1010use hiqdev \php \billing \product \quantity \QuantityFormatterInterface ;
11+ use hiqdev \php \billing \product \TariffTypeDefinitionInterface ;
1112use hiqdev \php \billing \type \TypeInterface ;
1213
1314interface PriceTypeDefinitionInterface extends HasBehaviorsInterface
@@ -45,4 +46,6 @@ public function getUnit(): UnitInterface;
4546 public function aggregation (AggregateInterface $ aggregate ): self ;
4647
4748 public function getAggregate (): AggregateInterface ;
49+
50+ public function getTariffTypeDefinition (): TariffTypeDefinitionInterface ;
4851}
You can’t perform that action at this time.
0 commit comments