Skip to content

How many responsibilities is one responsibility

A Report class builds the data, formats it as PDF, and emails it. A reviewer says this violates the single responsibility principle.

What is the most useful way to decide whether they are right?