Controller::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 3
nc 1
nop 3
crap 2
1
<?php
2
/**
3
 * @author Thomas Tanghus
4
 * @author Thomas Tanghus
5
 * @copyright 2013-2014 Thomas Tanghus ([email protected])
6
 *
7
 * This file is licensed under the Affero General Public License version 3 or
8
 * later.
9
 * See the COPYING-README file.
10
 */
11
12
namespace OCA\Contacts;
13
14
use OCP\AppFramework\Controller as  BaseController;
15
use OCP\IRequest;
16
17
/**
18
 * Base Controller class for Contacts App
19
 */
20
class Controller extends BaseController {
21
22
	/**
23
	* @var App
24
	*/
25
	protected $app;
26
27
	public function __construct($appName, IRequest $request, App $app) {
28
		parent::__construct($appName, $request);
29
		$this->app = $app;
30
	}
31
32
}
33