Error   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
/**
3
 * Copyright (c) 2014, Tobia De Koninck hey--at--ledfan.be
4
 * This file is licensed under the AGPL version 3 or later.
5
 * See the COPYING file.
6
 */
7
8
namespace OCA\Chat\OCH\Responses;
9
10
use \OCP\AppFramework\Http\JSONResponse;
11
12
class Error extends JSONResponse {
13
14
	public function __construct($requestType, $action, $errorMsg){
15
		parent::__construct(array(
16
			"type" => $requestType . "::" . $action . "::response",
17
			"data" => array(
18
				"status" => "error",
19
				"msg" => $errorMsg
20
			)
21
		));
22
	}
23
}