MissingDataError::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
/**
3
 * Author: Nil Portugués Calderó <[email protected]>
4
 * Date: 11/28/15
5
 * Time: 1:29 AM.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace NilPortugues\Api\JsonApi\Server\Errors;
11
12
/**
13
 * Class MissingDataError.
14
 */
15
class MissingDataError extends Error
16
{
17
    /**
18
     *
19
     */
20
    public function __construct()
21
    {
22
        parent::__construct(
23
            'Bad Request',
24
            "Missing `data` Member at document's top level.",
25
            'bad_request'
26
        );
27
28
        $this->setSource('pointer', '');
29
    }
30
}
31