OpenViduInvalidArgumentException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
namespace SquareetLabs\LaravelOpenVidu\Exceptions;
4
5
6
use Exception;
7
use Throwable;
8
9
/**
10
 * Class OpenViduInvalidArgumentException
11
 * @package SquareetLabs\LaravelOpenVidu\Exceptions
12
 */
13
class OpenViduInvalidArgumentException extends Exception
14
{
15
    public function __construct($message = "", $code = 422, Throwable $previous = null)
16
    {
17
        parent::__construct($message, $code, $previous);
18
    }
19
20
    public function __toString()
21
    {
22
        return __CLASS__.":[{$this->code}]:{$this->message}\n";
23
    }
24
}
25