Completed
Push — master ( 029d32...f8abda )
by Vasily
04:13
created

Websocket   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A run() 0 1 1
1
<?php
2
namespace PHPDaemon\SockJS\Methods;
3
4
use PHPDaemon\Core\Daemon;
5
use PHPDaemon\Core\Debug;
6
use PHPDaemon\Utils\Crypt;
7
8
/**
9
 * @package    Libraries
10
 * @subpackage SockJS
11
 * @author     Vasily Zorin <[email protected]>
12
 */
13
class Websocket extends Generic {
14
	protected $contentType = 'text/plain';
15
16
	/**
17
	 * Constructor
18
	 * @return void
19
	 */
20
	public function init() {
21
		$this->header('426 Upgrade Required');
22
		$this->finish();
23
	}
24
25
	/**
26
	 * Called when request iterated
27
	 * @return void
28
	 */
29
	public function run() {}
30
}
31