File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments