ChatAPI   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
setRequestData() 0 1 ?
A getRequestData() 0 3 1
execute() 0 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;
9
10
use \OCA\Chat\App\Chat;
11
12
/*
13
 * API Base Class
14
 */
15
abstract class ChatAPI {
16
17
	protected $requestData;
18
19
	abstract public function setRequestData(array $requestData);
20
21
	public function getRequestData(){
22
		return $this->requestData;
23
	}
24
25
	abstract public function execute();
26
}
27