I'm working on a Magento 2 CRUD functionality following the best practices (best described here). On the project I'm working on we are using PHPMD (php mess detector). Among other rules, we have the CBO limit set to 13 (which I understand is the default). My repository is implementing the get
, save
, getList
, delete
, deleteById
methods and the limit is already 12.
What would be best practice if I need to add other methods to this repository without overlapping the PHPMD CBO limit?
P.S. I think this can be the case for implementations in other frameworks/platforms as well, not strictly related to Magento 2.