Service   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Mediawiki\Api\Service;
4
5
use Mediawiki\Api\MediawikiApi;
6
7
/**
8
 * The base service functions that all services inherit.
9
 * @since 0.7.2
10
 */
11
abstract class Service {
12
13
	/** @var MediawikiApi */
14
	protected $api;
15
16
	/**
17
	 * @param MediawikiApi $api The API to in for this service.
18
	 */
19 20
	public function __construct( MediawikiApi $api ) {
20 20
		$this->api = $api;
21 20
	}
22
23
}
24