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\Title\Title; |
4 | use MediaWiki\User\User; |
5 | |
6 | /** |
7 | * @since 1.31 |
8 | */ |
9 | interface ImportableUploadRevision { |
10 | |
11 | /** |
12 | * @since 1.31 |
13 | * @return string Archive name of a revision if archived. |
14 | */ |
15 | public function getArchiveName(); |
16 | |
17 | /** |
18 | * @since 1.31 |
19 | * @return Title |
20 | */ |
21 | public function getTitle(); |
22 | |
23 | /** |
24 | * @since 1.31 |
25 | * @return string TS_MW timestamp, a string with 14 digits |
26 | */ |
27 | public function getTimestamp(); |
28 | |
29 | /** |
30 | * @since 1.31 |
31 | * @return string|null HTTP source of revision to be used for downloading. |
32 | */ |
33 | public function getSrc(); |
34 | |
35 | /** |
36 | * @since 1.31 |
37 | * @return string Local file source of the revision. |
38 | */ |
39 | public function getFileSrc(); |
40 | |
41 | /** |
42 | * @since 1.31 |
43 | * @return bool Is the return of getFileSrc only temporary? |
44 | */ |
45 | public function isTempSrc(); |
46 | |
47 | /** |
48 | * @since 1.31 |
49 | * @return string|bool sha1 of the revision, false if not set or errors occur. |
50 | */ |
51 | public function getSha1(); |
52 | |
53 | /** |
54 | * @deprecated since 1.39, use {@see getUser} instead; this is almost always null anyway |
55 | * @since 1.31 |
56 | * @return User|null Typically null, use {@see getUser} instead |
57 | */ |
58 | public function getUserObj(); |
59 | |
60 | /** |
61 | * @since 1.31 |
62 | * @return string The username of the user that created this revision |
63 | */ |
64 | public function getUser(); |
65 | |
66 | /** |
67 | * @since 1.31 |
68 | * @return string |
69 | */ |
70 | public function getComment(); |
71 | |
72 | } |