| @@ 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 |
|
| @@ 592-606 (lines=15) @@ | ||
| 589 | return $cartItemMetadata; |
|
| 590 | } |
|
| 591 | ||
| 592 | private function getCartItemDetailMetadata() |
|
| 593 | { |
|
| 594 | $cartItemDetailMetadata = new ClassMetadata( |
|
| 595 | 'cart_item_details', |
|
| 596 | 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail', |
|
| 597 | '' |
|
| 598 | ); |
|
| 599 | ||
| 600 | $cartItemDetailMetadata->setAttributeList([ |
|
| 601 | new Attribute('@id', 'id', 'string', true), |
|
| 602 | new Attribute('name'), |
|
| 603 | ]); |
|
| 604 | ||
| 605 | return $cartItemDetailMetadata; |
|
| 606 | } |
|
| 607 | } |
|
| 608 | ||