/** * Executes this command, and returns a new SlackResult instance. * TODO move channel_id string to global config. * * @return \RedmineCommand\SlackResult */ public function execute() { $this->log->debug("AbstractCommand (" . get_class($this) . "): command array: {" . implode(",", $this->cmd) . "}"); $this->result = $this->executeImpl(); if ($this->response_to_source_channel) { $this->log->debug("AbstractCommand (" . get_class($this) . "): requesting channel name for channel: " . $this->post["channel_id"]); $this->result->setChannel(Util::getChannelName($this->config, $this->post["channel_id"])); } return $this->result; }