Passed
Pull Request — master (#7215)
by Angel Fernando Quiroz
19:05 queued 07:41
created

ScimException::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Exception;
8
9
use Symfony\Component\HttpFoundation\Response;
10
use Throwable;
11
12
class ScimException extends \RuntimeException
13
{
14
    public function __construct(
15
        string $message = "",
16
        private readonly int $statusCode = Response::HTTP_BAD_REQUEST,
17
        ?Throwable $previous = null
18
    ) {
19
        parent::__construct($message, $statusCode, $previous);
20
    }
21
22
    public function getStatusCode(): int
23
    {
24
        return $this->statusCode;
25
    }
26
}
27