Completed
Push — master ( be3a9a...01d4aa )
by Freek
01:31
created

CouldNotAddToPersonalData   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fileAlreadyAddedToPersonalData() 0 4 1
1
<?php
2
3
namespace Spatie\PersonalDataDownload\Exceptions;
4
5
use Exception;
6
7
class CouldNotAddToPersonalData extends Exception
8
{
9
    public static function fileAlreadyAddedToPersonalData(string $path)
10
    {
11
        return new static("Could not add `{$path}` because it already exists.");
12
    }
13
14
15
}