PatchFailureException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
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