I'm creating a custom module, and I want to know if it's better to create a module with this structure :
Api/Data/CustomInterface.php
Model/Custom.php
Model/ResourceModel/Custom.php
Model/ResourceModel/Custom/Collection.php
My model implements the interface, and I create every getters and setters inside.
The other solution is this structure :
Model/Custom.php
Model/ResourceModel/Custom.php
Model/ResourceModel/Custom/Collection.php
No interfaces, no getters, no setters, few methods like Magento 1.
The first is slower, but cleaner. The second is faster, but messier.
Which is the best for you ?
Thank you