Completed
Push — 2.1 ( c952e8...98ed49 )
by Carsten
10:00
created

ConflictHttpException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\web;
9
10
/**
11
 * ConflictHttpException represents a "Conflict" HTTP exception with status code 409
12
 *
13
 * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10
14
 * @author Dan Schmidt <[email protected]>
15
 * @since 2.0
16
 */
17
class ConflictHttpException extends HttpException
18
{
19
    /**
20
     * Constructor.
21
     * @param string $message error message
22
     * @param integer $code error code
23
     * @param \Exception $previous The previous exception used for the exception chaining.
24
     */
25
    public function __construct($message = null, $code = 0, \Exception $previous = null)
26
    {
27
        parent::__construct(409, $message, $code, $previous);
28
    }
29
}
30