Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 6
CRAP
0.00% covered (danger)
0.00%
0 / 1
MWPageProxy
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 6
42
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getWikiId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDBkey
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getNamespace
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPrefixedText
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPageIdentity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare( strict_types=1 );
4
5namespace MediaWiki\Extension\CampaignEvents\MWEntity;
6
7use MediaWiki\Page\ProperPageIdentity;
8
9class MWPageProxy implements ICampaignsPage {
10    private ProperPageIdentity $page;
11    private string $prefixedText;
12
13    /**
14     * @param ProperPageIdentity $page
15     * @param string $prefixedText
16     */
17    public function __construct( ProperPageIdentity $page, string $prefixedText ) {
18        $this->page = $page;
19        $this->prefixedText = $prefixedText;
20    }
21
22    /**
23     * @inheritDoc
24     */
25    public function getWikiId() {
26        return $this->page->getWikiId();
27    }
28
29    /**
30     * @inheritDoc
31     */
32    public function getDBkey(): string {
33        return $this->page->getDBkey();
34    }
35
36    /**
37     * @inheritDoc
38     */
39    public function getNamespace(): int {
40        return $this->page->getNamespace();
41    }
42
43    /**
44     * @inheritDoc
45     */
46    public function getPrefixedText(): string {
47        return $this->prefixedText;
48    }
49
50    /**
51     * @return ProperPageIdentity
52     */
53    public function getPageIdentity(): ProperPageIdentity {
54        return $this->page;
55    }
56}