Implement a DTO into a model in Magento
Implement a DTO interface in a Magento 2 model using PostInterface constants and getData setData methods.
Lesson Content
Before we create a repository interface, we can have our model implement our newly created DTO interface. Since we now have a Post data object defined, our model should conform to it. We’ll do that by...
Premium content
Enroll to unlock the full content and all course materials.
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.