Test Failed
Pull Request — master (#431)
by
unknown
06:58
created

AuditableTransitionException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 27
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getIncompatibilities() 0 3 1
A __construct() 0 5 1
1
<?php
2
/**
3
 * This file is part of the Laravel Auditing package.
4
 *
5
 * @author     Antério Vieira <[email protected]>
6
 * @author     Quetzy Garcia  <[email protected]>
7
 * @author     Raphael França <[email protected]>
8
 * @copyright  2015-2018
9
 *
10
 * For the full copyright and license information,
11
 * please view the LICENSE.md file that was distributed
12
 * with this source code.
13
 */
14
15
namespace OwenIt\Auditing\Exceptions;
16
17
use Throwable;
18
19
class AuditableTransitionException extends AuditingException
20
{
21
    /**
22
     * Attribute incompatibilities.
23
     *
24
     * @var array
25
     */
26
    protected $incompatibilities = [];
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function __construct($message = '', array $incompatibilities = [], $code = 0, Throwable $previous = null)
32
    {
33
        parent::__construct($message, $code, $previous);
34
35
        $this->incompatibilities = $incompatibilities;
36
    }
37
38
    /**
39
     * Get the attribute incompatibilities.
40
     *
41
     * @return array
42
     */
43
    public function getIncompatibilities(): array
44
    {
45
        return $this->incompatibilities;
46
    }
47
}
48