Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
WikiLambdaServices
n/a
0 / 0
n/a
0 / 0
3
n/a
0 / 0
 getZObjectStore
n/a
0 / 0
n/a
0 / 0
1
 getZObjectAuthorization
n/a
0 / 0
n/a
0 / 0
1
 getZObjectStash
n/a
0 / 0
n/a
0 / 0
1
1<?php
2/**
3 * WikiLambda Services
4 *
5 * @file
6 * @ingroup Extensions
7 * @copyright 2020– Abstract Wikipedia team; see AUTHORS.txt
8 * @license MIT
9 */
10
11namespace MediaWiki\Extension\WikiLambda;
12
13use BagOStuff;
14use MediaWiki\Extension\WikiLambda\Authorization\ZObjectAuthorization;
15use MediaWiki\MediaWikiServices;
16
17/**
18 * @codeCoverageIgnore
19 */
20class WikiLambdaServices {
21
22    /**
23     * @return ZObjectStore
24     */
25    public static function getZObjectStore(): ZObjectStore {
26        return MediaWikiServices::getInstance()->getService( 'WikiLambdaZObjectStore' );
27    }
28
29    /**
30     * @return ZObjectAuthorization
31     */
32    public static function getZObjectAuthorization(): ZObjectAuthorization {
33        return MediaWikiServices::getInstance()->getService( 'WikiLambdaZObjectAuthorization' );
34    }
35
36    /**
37     * @return BagOStuff
38     */
39    public static function getZObjectStash(): BagOStuff {
40        return MediaWikiServices::getInstance()->getService( 'WikiLambdaZObjectStash' );
41    }
42}