NotImportableException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Saxulum\ModelImporter;
4
5
class NotImportableException extends \Exception
6
{
7
    const ACTION_CREATE = 'create';
8
    const ACTION_UPDATE = 'update';
9
    const ACTION_PERSIST = 'persist';
10
11
    /**
12
     * @param string          $action
13
     * @param int             $code
14
     * @param \Exception|null $previous
15
     */
16
    public function __construct($action, $code = 0, \Exception $previous = null)
17
    {
18
        parent::__construct(
19
            sprintf('Model with identifier {identifier} is not importable, cause %s failed', $action),
20
            $code,
21
            $previous
22
        );
23
    }
24
}
25