| @@ 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 |
|
| @@ 943-957 (lines=15) @@ | ||
| 940 | return $cartItemMetadata; |
|
| 941 | } |
|
| 942 | ||
| 943 | private function getCartItemDetailMetadata() |
|
| 944 | { |
|
| 945 | $cartItemDetailMetadata = new ClassMetadata( |
|
| 946 | 'cart_item_details', |
|
| 947 | 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail', |
|
| 948 | '' |
|
| 949 | ); |
|
| 950 | ||
| 951 | $cartItemDetailMetadata->setAttributeList([ |
|
| 952 | new Attribute('@id', 'id', 'string', true), |
|
| 953 | new Attribute('name'), |
|
| 954 | ]); |
|
| 955 | ||
| 956 | return $cartItemDetailMetadata; |
|
| 957 | } |
|
| 958 | } |
|
| 959 | ||