File tree Expand file tree Collapse file tree
src/Context/SalesChannelContext Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace Shopware \App \SDK \Context \SalesChannelContext ;
66
77use Shopware \App \SDK \Context \ArrayStruct ;
8+ use Shopware \App \SDK \Context \Trait \CustomFieldsAware ;
89
910class Country extends ArrayStruct
1011{
12+ use CustomFieldsAware;
13+
14+ public function getId (): string
15+ {
16+ \assert (is_string ($ this ->data ['id ' ]));
17+ return $ this ->data ['id ' ];
18+ }
19+
1120 public function getName (): string
1221 {
1322 \assert (is_string ($ this ->data ['name ' ]));
Original file line number Diff line number Diff line change @@ -78,4 +78,10 @@ public function getLanguageInfo(): LanguageInfo
7878 \assert (\is_array ($ this ->data ['languageInfo ' ]));
7979 return new LanguageInfo ($ this ->data ['languageInfo ' ]);
8080 }
81+
82+ public function getShippingLocation (): ShippingLocation
83+ {
84+ \assert (\is_array ($ this ->data ['shippingLocation ' ]));
85+ return new ShippingLocation ($ this ->data ['shippingLocation ' ]);
86+ }
8187}
You can’t perform that action at this time.
0 commit comments