commandTrigger; } /** * @inheritDoc */ public function getObjectID() { return $this->triggerID; } /** * Returns the trigger specified by its commandTrigger value * * @return CommandTrigger */ public static function getTriggerByName(string $name) { $sql = "SELECT * FROM chat1_command_trigger WHERE commandTrigger = ?"; $statement = WCF::getDB()->prepare($sql); $statement->execute([ $name ]); $row = $statement->fetchArray(); if (!$row) { $row = []; } return new self(null, $row); } }