Completed
Push — master ( 11966d...5d848f )
by Sam
13s
created

Service::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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
	public function __construct( MediawikiApi $api ) {
20
		$this->api = $api;
21
	}
22
23
}
24