Skip to content

Commit f9b9ef1

Browse files
committed
Revert "Remove methods from Entity undeprecated in subclasses"
1 parent 614d1e4 commit f9b9ef1

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

src/Entity/Entity.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,30 @@ public function getId() {
4343
return $this->id;
4444
}
4545

46+
/**
47+
* Sets the value for the label in a certain value.
48+
*
49+
* @deprecated since 0.7.3 - use getFingerprint and setFingerprint
50+
*
51+
* @param string $languageCode
52+
* @param string $value
53+
*/
54+
public function setLabel( $languageCode, $value ) {
55+
$this->fingerprint->setLabel( $languageCode, $value );
56+
}
57+
58+
/**
59+
* Sets the value for the description in a certain value.
60+
*
61+
* @deprecated since 0.7.3 - use getFingerprint and setFingerprint
62+
*
63+
* @param string $languageCode
64+
* @param string $value
65+
*/
66+
public function setDescription( $languageCode, $value ) {
67+
$this->fingerprint->setDescription( $languageCode, $value );
68+
}
69+
4670
/**
4771
* Removes the labels in the specified languages.
4872
*
@@ -111,6 +135,18 @@ public function getAllAliases( array $languageCodes = null ) {
111135
return $textLists;
112136
}
113137

138+
/**
139+
* Sets the aliases for the item in the language with the specified code.
140+
*
141+
* @deprecated since 0.7.3 - use getFingerprint and setFingerprint
142+
*
143+
* @param string $languageCode
144+
* @param string[] $aliases
145+
*/
146+
public function setAliases( $languageCode, array $aliases ) {
147+
$this->fingerprint->setAliasGroup( $languageCode, $aliases );
148+
}
149+
114150
/**
115151
* Add the provided aliases to the aliases list of the item in the language with the specified code.
116152
*

0 commit comments

Comments
 (0)