File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010if ( ! 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 ) );
You can’t perform that action at this time.
0 commit comments