Completed
Push — master ( 882b8d...2a3893 )
by Andrii
12:07
created

RequiredInputException::getField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace hiapi\exceptions\domain;
4
5
/**
6
 * @author Andrii Vasyliev <[email protected]>
7
 */
8
class RequiredInputException extends DomainException
9
{
10
    private $field;
11
12
    public function __construct(string $message, int $code = 0, Throwable $previous = null)
13
    {
14
        $this->field = $message;
15
        parent::__construct("required input `$message`", $code, $previous);
16
    }
17
18
    public function getField()
19
    {
20
        return $this->field;
21
    }
22
}
23