PatchFailureException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 22
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFailedPatchPath() 0 3 1
A __construct() 0 5 1
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerPatches\Exceptions;
7
8
class PatchFailureException extends \Exception
9
{
10
    /**
11
     * @var string
12
     */
13
    private $failedPatchPath;
14
15
    /**
16
     * @param string $failedPatchPath
17
     * @param string $message
18
     * @param \Exception|null $previous
19
     */
20
    public function __construct($failedPatchPath, $message = '', $previous = null)
21
    {
22
        parent::__construct($message, 0, $previous);
23
24
        $this->failedPatchPath = $failedPatchPath;
25
    }
26
27
    public function getFailedPatchPath()
28
    {
29
        return $this->failedPatchPath;
30
    }
31
}
32