Completed
Push — master ( 57c87f...c28b62 )
by Elf
05:03
created

InvalidInputException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
1
<?php
2
3
namespace ElfSundae\Laravel\Api\Exceptions;
4
5
class InvalidInputException extends ApiResponseException
6
{
7
    /**
8
     * Create a new exception instance.
9
     *
10
     * @param  mixed  $data
11
     * @param  int  $code
12
     * @param  array  $headers
13
     * @param  int  $options
14
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
15
     */
16
    public function __construct($data = 'Invalid Input', $code = 421, $headers = [], $options = 0)
17
    {
18
        parent::__construct($data, $code, $headers, $options);
19
    }
20
}
21