Service::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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