Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | use MediaWiki\Content\Content; |
4 | use MediaWiki\Revision\SlotRecord; |
5 | use MediaWiki\Title\Title; |
6 | use MediaWiki\User\User; |
7 | |
8 | /** |
9 | * @since 1.31 |
10 | */ |
11 | interface ImportableOldRevision { |
12 | |
13 | /** |
14 | * @deprecated since 1.39, use {@see getUser} instead; this is almost always null anyway |
15 | * @since 1.31 |
16 | * @return User|null Typically null, use {@see getUser} instead |
17 | */ |
18 | public function getUserObj(); |
19 | |
20 | /** |
21 | * @since 1.31 |
22 | * @return string |
23 | */ |
24 | public function getUser(); |
25 | |
26 | /** |
27 | * @since 1.31 |
28 | * @return Title |
29 | */ |
30 | public function getTitle(); |
31 | |
32 | /** |
33 | * @since 1.31 |
34 | * @return string |
35 | */ |
36 | public function getTimestamp(); |
37 | |
38 | /** |
39 | * @since 1.31 |
40 | * @return string |
41 | */ |
42 | public function getComment(); |
43 | |
44 | /** |
45 | * @since 1.31 |
46 | * @return string |
47 | */ |
48 | public function getModel(); |
49 | |
50 | /** |
51 | * @since 1.31 |
52 | * @return string |
53 | */ |
54 | public function getFormat(); |
55 | |
56 | /** |
57 | * @since 1.31 |
58 | * @param string $role |
59 | * @return Content |
60 | */ |
61 | public function getContent( $role = SlotRecord::MAIN ); |
62 | |
63 | /** |
64 | * @since 1.35 |
65 | * @param string $role |
66 | * @return SlotRecord |
67 | */ |
68 | public function getSlot( $role ); |
69 | |
70 | /** |
71 | * @since 1.35 |
72 | * @return string[] |
73 | */ |
74 | public function getSlotRoles(); |
75 | |
76 | /** |
77 | * @since 1.31 |
78 | * @return bool |
79 | */ |
80 | public function getMinor(); |
81 | |
82 | /** |
83 | * @since 1.31 |
84 | * @return bool|string |
85 | */ |
86 | public function getSha1Base36(); |
87 | |
88 | /** |
89 | * @since 1.34 |
90 | * @return string[] |
91 | */ |
92 | public function getTags(); |
93 | |
94 | } |