@@ 690-705 (lines=16) @@ | ||
687 | /** |
|
688 | * @param string $idKey |
|
689 | */ |
|
690 | private function getProductMetadata($idKey) |
|
691 | { |
|
692 | $productMetadata = new ClassMetadata( |
|
693 | 'products', |
|
694 | 'Mapado\RestClientSdk\Tests\Model\JsonLd\Product', |
|
695 | '' |
|
696 | ); |
|
697 | ||
698 | $productMetadata->setAttributeList([ |
|
699 | new Attribute($idKey, 'id', 'string', true), |
|
700 | new Attribute('product_value', 'value'), |
|
701 | new Attribute('currency'), |
|
702 | ]); |
|
703 | ||
704 | return $productMetadata; |
|
705 | } |
|
706 | ||
707 | /** |
|
708 | * @param string $idKey |
@@ 901-915 (lines=15) @@ | ||
898 | return $cartItemMetadata; |
|
899 | } |
|
900 | ||
901 | private function getCartItemDetailMetadata() |
|
902 | { |
|
903 | $cartItemDetailMetadata = new ClassMetadata( |
|
904 | 'cart_item_details', |
|
905 | 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail', |
|
906 | '' |
|
907 | ); |
|
908 | ||
909 | $cartItemDetailMetadata->setAttributeList([ |
|
910 | new Attribute('@id', 'id', 'string', true), |
|
911 | new Attribute('name'), |
|
912 | ]); |
|
913 | ||
914 | return $cartItemDetailMetadata; |
|
915 | } |
|
916 | } |
|
917 |