Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Import; |
| 4 | |
| 5 | use MediaWiki\Title\Title; |
| 6 | use MediaWiki\User\User; |
| 7 | |
| 8 | /** |
| 9 | * @since 1.31 |
| 10 | */ |
| 11 | interface ImportableUploadRevision { |
| 12 | |
| 13 | /** |
| 14 | * @since 1.31 |
| 15 | * @return string Archive name of a revision if archived. |
| 16 | */ |
| 17 | public function getArchiveName(); |
| 18 | |
| 19 | /** |
| 20 | * @since 1.31 |
| 21 | * @return Title |
| 22 | */ |
| 23 | public function getTitle(); |
| 24 | |
| 25 | /** |
| 26 | * @since 1.31 |
| 27 | * @return string TS::MW timestamp, a string with 14 digits |
| 28 | */ |
| 29 | public function getTimestamp(); |
| 30 | |
| 31 | /** |
| 32 | * @since 1.31 |
| 33 | * @return string|null HTTP source of revision to be used for downloading. |
| 34 | */ |
| 35 | public function getSrc(); |
| 36 | |
| 37 | /** |
| 38 | * @since 1.31 |
| 39 | * @return string Local file source of the revision. |
| 40 | */ |
| 41 | public function getFileSrc(); |
| 42 | |
| 43 | /** |
| 44 | * @since 1.31 |
| 45 | * @return bool Is the return of getFileSrc only temporary? |
| 46 | */ |
| 47 | public function isTempSrc(); |
| 48 | |
| 49 | /** |
| 50 | * @since 1.31 |
| 51 | * @return string|bool sha1 of the revision, false if not set or errors occur. |
| 52 | */ |
| 53 | public function getSha1(); |
| 54 | |
| 55 | /** |
| 56 | * @deprecated since 1.39, use {@see getUser} instead; this is almost always null anyway |
| 57 | * @since 1.31 |
| 58 | * @return User|null Typically null, use {@see getUser} instead |
| 59 | */ |
| 60 | public function getUserObj(); |
| 61 | |
| 62 | /** |
| 63 | * @since 1.31 |
| 64 | * @return string The username of the user that created this revision |
| 65 | */ |
| 66 | public function getUser(); |
| 67 | |
| 68 | /** |
| 69 | * @since 1.31 |
| 70 | * @return string |
| 71 | */ |
| 72 | public function getComment(); |
| 73 | |
| 74 | } |
| 75 | |
| 76 | /** @deprecated class alias since 1.46 */ |
| 77 | class_alias( ImportableUploadRevision::class, 'ImportableUploadRevision' ); |