SuperdeskWebPublisher/SWPBridgeBundle

View on GitHub
Resources/config/serializer/Model.Item.yml

Summary

Maintainability
Test Coverage
SWP\Component\Bridge\Model\Item:
    exclusion_policy: ALL
    properties:
        body:
            expose: true
            serialized_name: body_html
            type: string
            groups: [api]
        bodyText:
            expose: true
            serialized_name: body_text
            type: string
            groups: [api]
        usageTerms:
            expose: true
            type: string
            serialized_name: usageterms
            groups: [api]
        items:
            expose: true
            serialized_name: associations
            type: ArrayCollection<string,SWP\Component\Bridge\Model\Item>
            groups: [deserialization]
        renditions:
            expose: true
            serialized_name: renditions
            type: ArrayCollection<string,SWP\Component\Bridge\Model\Rendition>
            groups: [deserialization]
        position:
            expose: true
            serialized_name: order
            type: integer
            groups: [api]

    virtual_properties:
        getItemsArray:
            serialized_name: associations
            type: array
            groups: [api]
        getRenditionsArray:
            serialized_name: renditions
            type: array
            groups: [api]