Skip to content

Commit

Permalink
HP-1751 tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
VadymHrechukha committed Dec 12, 2024
1 parent f01cc94 commit f7e6961
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/product/PriceTypesCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,40 @@ public function end(): TariffType
{
return $this->parent;
}

public function feature(PriceType $type): PriceTypeDefinition
{
$priceType = $this->createPriceTypeDefinition(GType::feature, $type);

$this->addPriceTypeDefinition($type, $priceType);

return $priceType;
}

public function domain(PriceType $type): PriceTypeDefinition
{
$priceType = $this->createPriceTypeDefinition(GType::domain, $type);

$this->addPriceTypeDefinition($type, $priceType);

return $priceType;
}

public function certificate(PriceType $type): PriceTypeDefinition
{
$priceType = $this->createPriceTypeDefinition(GType::certificate, $type);

$this->addPriceTypeDefinition($type, $priceType);

return $priceType;
}

public function discount(PriceType $type): PriceTypeDefinition
{
$priceType = $this->createPriceTypeDefinition(GType::discount, $type);

$this->addPriceTypeDefinition($type, $priceType);

return $priceType;
}
}

0 comments on commit f7e6961

Please # to comment.