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

InvalidInputException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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