Cohesion

Back to Single Responsibility Principle

The degree to which the elements inside a module belong together. High cohesion means a module’s responsibilities are closely related and focused. Low cohesion indicates a module handles unrelated tasks and should be split.

property srp cohesion