Passed
Push — master ( b97787...c0f601 )
by Jean-Christophe
16:10
created

JsonApiRestServer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Ubiquity\controllers\rest\api\jsonapi;
4
5
use Ubiquity\controllers\rest\RestServer;
6
7
/**
8
 * Rest server for JsonAPI 1.0.
9
 * Ubiquity\controllers\rest\api\jsonapi$JsonApiRestServer
10
 * This class is part of Ubiquity
11
 *
12
 * @author jcheron <[email protected]>
13
 * @version 1.0.1
14
 *
15
 */
16
class JsonApiRestServer extends RestServer {
17
18 3
	public function __construct(&$config) {
19 3
		parent::__construct ( $config );
20 3
		$this->headers ['Content-Type'] = 'application/vnd.api+json; charset=utf8';
21 3
	}
22
}
23
24