summaryrefslogtreecommitdiffstats
path: root/wp-includes/pomo/entry.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
commit30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 (patch)
tree39a02e2aeb21ab5b7923c6f5757d66d55b708912 /wp-includes/pomo/entry.php
parentAdding upstream version 6.4.3+dfsg1. (diff)
downloadwordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.tar.xz
wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.zip
Adding upstream version 6.5+dfsg1.upstream/6.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--wp-includes/pomo/entry.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/wp-includes/pomo/entry.php b/wp-includes/pomo/entry.php
index 9ca63f8..e1b1c8f 100644
--- a/wp-includes/pomo/entry.php
+++ b/wp-includes/pomo/entry.php
@@ -10,6 +10,8 @@
if ( ! class_exists( 'Translation_Entry', false ) ) :
/**
* Translation_Entry class encapsulates a translatable string.
+ *
+ * @since 2.8.0
*/
#[AllowDynamicProperties]
class Translation_Entry {
@@ -75,6 +77,7 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
/**
* PHP4 constructor.
*
+ * @since 2.8.0
* @deprecated 5.4.0 Use __construct() instead.
*
* @see Translation_Entry::__construct()
@@ -87,6 +90,8 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
/**
* Generates a unique key for this entry.
*
+ * @since 2.8.0
+ *
* @return string|false The key or false if the entry is null.
*/
public function key() {
@@ -103,7 +108,11 @@ if ( ! class_exists( 'Translation_Entry', false ) ) :
}
/**
- * @param object $other
+ * Merges another translation entry with the current one.
+ *
+ * @since 2.8.0
+ *
+ * @param Translation_Entry $other Other translation entry.
*/
public function merge_with( &$other ) {
$this->flags = array_unique( array_merge( $this->flags, $other->flags ) );