Skip to content

Extend entries from "AbstractSimpleObject" instead of "DataObject" #1

@zaietsv

Description

@zaietsv

I'd like to suggest usage of "AbstractSimpleObject" instead of "DataObject" in following entries:

  • Tevtex\CacheManagement\Model\Data\CachePurgeResponse
  • Tevtex\CacheManagement\Model\Data\CacheToggleResponse

A class "Magento\Framework\DataObject" contains some extra properties not used in the current implementations. Since "CachePurgeResponse" and "CacheToggleResponse" are dedicated only for REST output, it could be advisable to extend them from a parent class "Magento\Framework\Api\AbstractSimpleObject". The "AbstractSimpleObject" has more lightweight structure comparing to the "DataObject".

Hopefully the approach will save a couple of miliseconds for the REST outputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions