title: PHPMD and Coupling Between Object classes (CBO)
body: <p>I'm working on a Magento 2 CRUD functionality following the best practices (best described <a href="https://magento.stackexchange.com/questions/115269/how-to-implement-service-contract-for-a-custom-module-in-magento-2">here</a>). 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 <code>get</code>, <code>save</code>, <code>getList</code>, <code>delete</code>, <code>deleteById</code> methods and the limit is already 12. </p>
  
  <p>What would be best practice if I need to add other methods to this repository without overlapping the PHPMD CBO limit?</p>
  
  <p><em>P.S. I think this can be the case for implementations in other frameworks/platforms as well, not strictly related to Magento 2.</em> </p>