ResponseWebSocket   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
namespace Fructify\Reload\Response;
3
4
use Symfony\Component\HttpFoundation;
5
6
/**
7
 * Description of Request
8
 *
9
 * @author ricky
10
 */
11
class ResponseWebSocket extends HttpFoundation\Response
12
{
13
    public function __construct($content = '', $status = 101, $headers = array())
14
    {
15
        parent::__construct($content, $status, $headers);
16
        $this->headers->set('Connection', 'Upgrade');
17
        $this->headers->set('Upgrade', 'websocket');
18
        $this->headers->remove('Content-Length');
19
        $this->headers->remove('Cache-Control');
20
        $this->headers->remove('Date');
21
    }
22
}
23