Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 5
CRAP
0.00% covered (danger)
0.00%
0 / 1
PageRevisionProperties
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 5
30
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
 getTitle
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setTitle
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPageId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPageId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Wikispeech\Segment;
4
5/**
6 * @file
7 * @ingroup Extensions
8 * @license GPL-2.0-or-later
9 */
10
11use Title;
12
13/**
14 * Information required to load data in a {@link PageProvider} given just a revision id.
15 *
16 * @since 0.1.10
17 */
18class PageRevisionProperties {
19
20    /** @var Title */
21    private $title;
22
23    /** @var int */
24    private $pageId;
25
26    /**
27     * @since 0.1.10
28     * @param Title $title
29     * @param int $pageId
30     */
31    public function __construct(
32        Title $title,
33        int $pageId
34    ) {
35        $this->title = $title;
36        $this->pageId = $pageId;
37    }
38
39    /**
40     * @since 0.1.10
41     * @return Title
42     */
43    public function getTitle(): Title {
44        return $this->title;
45    }
46
47    /**
48     * @since 0.1.10
49     * @param Title $title
50     */
51    public function setTitle( Title $title ): void {
52        $this->title = $title;
53    }
54
55    /**
56     * @since 0.1.10
57     * @return int
58     */
59    public function getPageId(): int {
60        return $this->pageId;
61    }
62
63    /**
64     * @since 0.1.10
65     * @param int $pageId
66     */
67    public function setPageId( int $pageId ): void {
68        $this->pageId = $pageId;
69    }
70
71}