| @@ 710-728 (lines=19) @@ | ||
| 707 | /** |
|
| 708 | * @param string $idKey |
|
| 709 | */ |
|
| 710 | private function getCartItemDetailMetadata($idKey) |
|
| 711 | { |
|
| 712 | $cartItemDetailMetadata = new ClassMetadata( |
|
| 713 | 'cart_item_details', |
|
| 714 | 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail', |
|
| 715 | '' |
|
| 716 | ); |
|
| 717 | ||
| 718 | $cartItemDetailMetadata->setRelationList([ |
|
| 719 | new Relation('cartItem', Relation::MANY_TO_ONE, 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItem'), |
|
| 720 | ]); |
|
| 721 | $cartItemDetailMetadata->setAttributeList([ |
|
| 722 | new Attribute($idKey, 'id', 'string', true), |
|
| 723 | new Attribute('name'), |
|
| 724 | new Attribute('cartItem'), |
|
| 725 | ]); |
|
| 726 | ||
| 727 | return $cartItemDetailMetadata; |
|
| 728 | } |
|
| 729 | ||
| 730 | /** |
|
| 731 | * @param string $idKey |
|
| @@ 571-590 (lines=20) @@ | ||
| 568 | return $cartMetadata; |
|
| 569 | } |
|
| 570 | ||
| 571 | private function getCartItemMetadata() |
|
| 572 | { |
|
| 573 | $cartItemMetadata = new ClassMetadata( |
|
| 574 | 'cart_items', |
|
| 575 | 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItem', |
|
| 576 | '' |
|
| 577 | ); |
|
| 578 | ||
| 579 | $cartItemMetadata->setAttributeList([ |
|
| 580 | new Attribute('@id', 'id', 'string', true), |
|
| 581 | new Attribute('amount'), |
|
| 582 | new Attribute('cart_item_details', 'cartItemDetailList'), |
|
| 583 | ]); |
|
| 584 | ||
| 585 | $cartItemMetadata->setRelationList([ |
|
| 586 | new Relation('cartItemDetailList', Relation::ONE_TO_MANY, 'Mapado\RestClientSdk\Tests\Model\JsonLd\CartItemDetail'), |
|
| 587 | ]); |
|
| 588 | ||
| 589 | return $cartItemMetadata; |
|
| 590 | } |
|
| 591 | ||
| 592 | private function getCartItemDetailMetadata() |
|
| 593 | { |
|