Success   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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 Success extends JSONResponse{
13
14
	public function __construct($requestType, $action, $data=array()){
15
		$data["status"] = "success";
16
		parent::__construct(array(
17
			"type" => $requestType . "::" . $action . "::response" ,
18
			"data" => $data
19
		));
20
	}
21
}