SplashMissingParameterException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
1
<?php
2
3
namespace Mouf\Mvc\Splash\Exception;
4
5
/**
6
 * Exception thrown when a parameter should have been present in the query but is not available.
7
 *
8
 * @author David Negrier
9
 */
10
class SplashMissingParameterException extends BadRequestException
11
{
12
    public $key;
13
14
    public static function create($key)
15
    {
16
        $exception = new self('Missing parameter: '.$key, 400);
17
        $exception->key = $key;
18
19
        return $exception;
20
    }
21
}
22