Completed
Pull Request — master (#447)
by Marcel
02:47 queued 01:22
created

OriginNotAllowed::__construct()   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 1
1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\Server\Exceptions;
4
5
class OriginNotAllowed extends WebSocketException
6
{
7
    /**
8
     * Initalize the exception.
9
     *
10
     * @param  string  $appKey
11
     * @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...
12
     */
13
    public function __construct($appKey)
14
    {
15
        $this->trigger("The origin is not allowed for `{$appKey}`.", 4009);
16
    }
17
}
18