| @@ 707-717 (lines=11) @@ | ||
| 704 | * @param Response $response |
|
| 705 | * @return ContentTypeGroup |
|
| 706 | */ |
|
| 707 | private function parseContentTypeGroupFromResponse(Response $response) |
|
| 708 | { |
|
| 709 | $struct = json_decode($response->getContent(), true); |
|
| 710 | ||
| 711 | return new ContentTypeGroup( |
|
| 712 | [ |
|
| 713 | 'id' => $struct['ContentTypeGroup']['id'], |
|
| 714 | 'identifier' => $struct['ContentTypeGroup']['identifier'] |
|
| 715 | ] |
|
| 716 | ); |
|
| 717 | } |
|
| 718 | ||
| 719 | /** |
|
| 720 | * @param Response $response |
|
| @@ 723-734 (lines=12) @@ | ||
| 720 | * @param Response $response |
|
| 721 | * @return ContentType |
|
| 722 | */ |
|
| 723 | private function parseContentTypeFromResponse(Response $response) |
|
| 724 | { |
|
| 725 | $struct = json_decode($response->getContent(), true); |
|
| 726 | ||
| 727 | return new ContentType( |
|
| 728 | [ |
|
| 729 | 'id' => $struct['ContentType']['id'], |
|
| 730 | 'identifier' => $struct['ContentType']['identifier'], |
|
| 731 | 'fieldDefinitions' => [] |
|
| 732 | ] |
|
| 733 | ); |
|
| 734 | } |
|
| 735 | ||
| 736 | private function parseContentTypeListFromRespose($response) |
|
| 737 | { |
|