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