Skip to content

Commit a2ef6fa

Browse files
committed
I18N: Improve docs for pomo library classes.
Props subrataemfluence, pento, hrshahin. Fixes #44424. git-svn-id: https://develop.svn.wordpress.org/trunk@57734 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b75d47c commit a2ef6fa

2 files changed

Lines changed: 176 additions & 19 deletions

File tree

src/wp-includes/pomo/entry.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
if ( ! class_exists( 'Translation_Entry', false ) ) :
1111
/**
1212
* Translation_Entry class encapsulates a translatable string.
13+
*
14+
* @since 2.8.0
1315
*/
1416
#[AllowDynamicProperties]
1517
class Translation_Entry {
@@ -75,6 +77,7 @@ public function __construct( $args = array() ) {
7577
/**
7678
* PHP4 constructor.
7779
*
80+
* @since 2.8.0
7881
* @deprecated 5.4.0 Use __construct() instead.
7982
*
8083
* @see Translation_Entry::__construct()
@@ -87,6 +90,8 @@ public function Translation_Entry( $args = array() ) {
8790
/**
8891
* Generates a unique key for this entry.
8992
*
93+
* @since 2.8.0
94+
*
9095
* @return string|false The key or false if the entry is null.
9196
*/
9297
public function key() {
@@ -103,7 +108,11 @@ public function key() {
103108
}
104109

105110
/**
106-
* @param object $other
111+
* Merges another translation entry with the current one.
112+
*
113+
* @since 2.8.0
114+
*
115+
* @param Translation_Entry $other Other translation entry.
107116
*/
108117
public function merge_with( &$other ) {
109118
$this->flags = array_unique( array_merge( $this->flags, $other->flags ) );

0 commit comments

Comments
 (0)