Completed
Push — master ( 64f309...275242 )
by Andrii
07:38
created

ErrorMultiCurrencyException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 10
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
1
<?php
2
3
namespace hipanel\modules\finance\cart;
4
5
use yii\base\Exception;
6
7
class ErrorMultiCurrencyException extends ErrorPurchaseException
8
{
9
    /**
10
     * {@inheritDoc}
11
     */
12
    public function __construct($message, $purchase, Exception $previous = null)
13
    {
14
        parent::__construct(!empty($message) ? $message : 'Can not add this item to cart because of different currency', $purchase, $previous);
15
    }
16
}
17