ResourceAlreadyExists   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fileExists() 0 6 1
1
<?php
2
3
namespace VueGenerators\Exceptions;
4
5
use Exception;
6
7
class ResourceAlreadyExists extends Exception
8
{
9
    /**
10
     * File of given name already exists at path.
11
     *
12
     * @param string $name
13
     *
14
     * @return static
15
     */
16
    public static function fileExists($name)
17
    {
18
        return new static(
19
            "File {$name} already exists at path."
20
        );
21
    }
22
}
23