Skip to content

Commit f7e6961

Browse files
HP-1751 tiny
1 parent f01cc94 commit f7e6961

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/product/PriceTypesCollection.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,40 @@ public function end(): TariffType
6565
{
6666
return $this->parent;
6767
}
68+
69+
public function feature(PriceType $type): PriceTypeDefinition
70+
{
71+
$priceType = $this->createPriceTypeDefinition(GType::feature, $type);
72+
73+
$this->addPriceTypeDefinition($type, $priceType);
74+
75+
return $priceType;
76+
}
77+
78+
public function domain(PriceType $type): PriceTypeDefinition
79+
{
80+
$priceType = $this->createPriceTypeDefinition(GType::domain, $type);
81+
82+
$this->addPriceTypeDefinition($type, $priceType);
83+
84+
return $priceType;
85+
}
86+
87+
public function certificate(PriceType $type): PriceTypeDefinition
88+
{
89+
$priceType = $this->createPriceTypeDefinition(GType::certificate, $type);
90+
91+
$this->addPriceTypeDefinition($type, $priceType);
92+
93+
return $priceType;
94+
}
95+
96+
public function discount(PriceType $type): PriceTypeDefinition
97+
{
98+
$priceType = $this->createPriceTypeDefinition(GType::discount, $type);
99+
100+
$this->addPriceTypeDefinition($type, $priceType);
101+
102+
return $priceType;
103+
}
68104
}

0 commit comments

Comments
 (0)