Completed
Pull Request — master (#10)
by Mike
03:00
created

CannotSetParameter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A conflictParameters() 0 4 1
1
<?php
2
3
namespace Spatie\DbDumper\Exceptions;
4
5
use Exception;
6
7
class CannotSetParameter extends Exception
8
{
9
    /**
10
     * @param string $name
11
     * @param string $conflictName
12
     *
13
     * @return \Spatie\DbDumper\Exceptions\CannotSetParameter
14
     */
15
    public static function conflictParameters($name, $conflictName)
16
    {
17
        return new static("Cannot set {$name}! Conflicts with parameter {$conflictName}.");
18
    }
19
}
20