| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | final class SEPAExportAutoModeNotPossible extends RuntimeException |
||
| 25 | { |
||
| 26 | private $wrong_department; |
||
| 27 | |||
| 28 | public function __construct(?Department $department = null) |
||
| 29 | { |
||
| 30 | $this->wrong_department = $department; |
||
| 31 | parent::__construct('Auto Mode not possible as a department is missing a default bank account'); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Returns the Department which is missing the default account definition. |
||
| 36 | */ |
||
| 37 | public function getWrongDepartment(): ?Department |
||
| 40 | } |
||
| 41 | } |
||
| 42 |