Completed
Push — master ( 796faa...c23832 )
by Alexander
10:56 queued 07:31
created

BadRequestException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 11
Ratio 100 %

Code Coverage

Tests 7
CRAP Score 2

Importance

Changes 0
Metric Value
dl 11
loc 11
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 6
nc 2
nop 1
crap 2
1
<?php
2
/**
3
 * Exception with 400 HTTP code and json array with errors
4
 *
5
 * https://tools.ietf.org/html/rfc7231#page-58
6
 *
7
 * @file      UserErrorHandler.php
8
 *
9
 * PHP version 5.6+
10
 *
11
 * @author    Yancharuk Alexander <alex at itvault dot info>
12
 * @copyright © 2012-2016 Alexander Yancharuk
13
 * @date      2015-08-12 21:44
14
 * @license   The BSD 3-Clause License
15
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
16
 */
17
18
namespace Veles\Exceptions\Http;
19
20
/**
21
 * Class   BadRequestException
22
 *
23
 * @author Yancharuk Alexander <alex at itvault dot info>
24
 */
25
class BadRequestException extends UnprocessableException
26
{
27
	/** @var string  */
28
	protected $http_msg = 'HTTP/1.1 400 Bad Request';
29
	/** @var int  */
30
	protected $http_code = 400;
31
}
32