Completed
Push — main ( 2daa48...b5d932 )
by
unknown
08:38
created

Service   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Addwiki\Mediawiki\Api\Service;
4
5
use Addwiki\Mediawiki\Api\Client\MediawikiApi;
6
7
/**
8
 * The base service functions that all services inherit.
9
 * @since 0.7.2
10
 */
11
abstract class Service {
12
13
	protected MediawikiApi $api;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
14
15
	/**
16
	 * @param MediawikiApi $api The API to in for this service.
17
	 */
18
	public function __construct( MediawikiApi $api ) {
19
		$this->api = $api;
20
	}
21
22
}
23