| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 11 | 3 | public function __construct(FormatterInterface $formatter, $data, $allowedTypes) | |
| 12 |     { | ||
| 13 | 3 | $formatterDescription = get_class($formatter); | |
| 14 | 3 | $dataDescription = static::describeDataType($data); | |
| 15 | 3 | $allowedTypesDescription = static::describeAllowedTypes($allowedTypes); | |
| 16 | 3 | $message = "Data provided to $formatterDescription must be $allowedTypesDescription. Instead, $dataDescription was provided."; | |
| 17 | 3 | parent::__construct($message, 1); | |
| 18 | 3 | } | |
| 19 | } | ||
| 20 |