HttpServer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\Server;
4
5
use Ratchet\Http\HttpServer as BaseHttpServer;
6
use Ratchet\Http\HttpServerInterface;
7
8
class HttpServer extends BaseHttpServer
9
{
10
    /**
11
     * Create a new server instance.
12
     *
13
     * @param  \Ratchet\Http\HttpServerInterface  $component
14
     * @param  int  $maxRequestSize
15
     * @return void
16
     */
17
    public function __construct(HttpServerInterface $component, int $maxRequestSize = 4096)
18
    {
19
        parent::__construct($component);
20
21
        $this->_reqParser->maxSize = $maxRequestSize;
22
    }
23
}
24