ResponseWebSocketFrame   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
namespace Fructify\Reload\Response;
3
4
use Fructify\Reload\Protocol\WebSocket\Frame;
5
6
/**
7
 * Description of Request
8
 *
9
 * @author ricky
10
 */
11
class ResponseWebSocketFrame
12
{
13
    protected $frame;
14
15
    public function __construct(Frame $frame)
16
    {
17
        $this->frame = $frame;
18
    }
19
20
    public function __toString()
21
    {
22
        return $this->frame->encode();
23
    }
24
}
25