| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function __construct( |
||
| 29 | EntityId $entityId, |
||
| 30 | array $languageCodes, |
||
| 31 | $message = null, |
||
| 32 | ?Exception $previous = null |
||
| 33 | ) { |
||
| 34 | $this->entityId = $entityId; |
||
| 35 | |||
| 36 | $codesString = implode( ', ', $languageCodes ); |
||
| 37 | |||
| 38 | parent::__construct( |
||
| 39 | $message ?: 'Term lookup failed for: ' . $entityId . ' with language codes: ' . $codesString, |
||
| 40 | 0, |
||
| 41 | $previous |
||
| 42 | ); |
||
| 53 |