Skip to content

Commit

Permalink
HP-1751 added annotation for BillingRegistry::getBehavior() method
Browse files Browse the repository at this point in the history
  • Loading branch information
VadymHrechukha committed Dec 31, 2024
1 parent 49989bf commit 1280f4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/product/BillingRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ private function convertStringTypeToType(string $type): TypeInterface
return Type::anyId($type);
}

/**
* @param string $type - full type like 'overuse,lb_capacity_unit'
* @param string $behaviorClassWrapper
* @return BehaviorInterface
* @throws BehaviorNotFoundException
*/
public function getBehavior(string $type, string $behaviorClassWrapper): BehaviorInterface
{
$type = $this->convertStringTypeToType($type);
Expand Down

0 comments on commit 1280f4c

Please sign in to comment.