declare(strict_types=1);
namespace wcf\data\reaction\type;
use wcf\data\DatabaseObject;
+use wcf\data\ITitledObject;
use wcf\system\WCF;
/**
* @since 3.2
*
* @property-read integer $reactionTypeID unique id of the reaction type
- * @property-read string $reactionTitle
+ * @property-read string $title
* @property-read integer $type type of the reaction (1 is positive, 0 is neutral and -1 is negative)
* @property-read integer $showOrder position of the reaction type in relation to the other reaction types
* @property-read integer $iconType the icon type of the reaction
* @property-read string $iconColor the icon color
* @property-read integer $isDisabled is `1` if the reaction type is disabled and thus not shown, otherwise `0`
*/
-class ReactionType extends DatabaseObject {
+class ReactionType extends DatabaseObject implements ITitledObject {
/**
* The type value, if this reaction type is a positive reaction.
* @var integer
* @inheritDoc
*/
public function getTitle(): string {
- return WCF::getLanguage()->get($this->reactionTitle);
+ return WCF::getLanguage()->get($this->title);
}
/**
DROP TABLE IF EXISTS wcf1_reaction_type;
CREATE TABLE wcf1_reaction_type(
reactionTypeID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
- reactionTitle VARCHAR(255),
+ title VARCHAR(255),
type TINYINT(1),
showOrder INT(10) NOT NULL DEFAULT 0,
iconType TINYINT(1) DEFAULT 1,