| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 2 | public function __construct(Currency $ct1, Currency $ct2) |
|
| 17 | { |
||
| 18 | 2 | $this->ct1 = $ct1; |
|
| 19 | 2 | $this->ct2 = $ct2; |
|
| 20 | |||
| 21 | 2 | if ($ct1 === $ct2) { |
|
| 22 | 1 | throw new LogicException( |
|
| 23 | 1 | 'Trying to construct InconsistentCurrencyTypesError with exactly equal CurrencyType instances' |
|
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | parent::__construct('Same ISO currency code but different currency settings', 0, null); |
|
| 28 | 1 | } |
|
| 29 | |||
| 38 |