code: public function read(array $opts) {
          $version = trim(file_get_contents(__DIR__.'/../../VERSION'));
          return [
              'user' => $opts['userid'] < 1 ? null : $this->repo->readUser($opts['userid']),
              'relateduser' => $opts['relateduserid'] < 1 ? null : $this->repo->readUser($opts['relateduserid']),
              'course' => $this->repo->readCourse($opts['courseid']),
              'app' => $this->repo->readSite(),
              'info' => (object) [
                  'https://moodle.org/' => $this->repo->readRelease(),
                  'https://github.com/LearningLocker/Moodle-Log-Expander' => $version,
              ],
              'event' => $opts,
          ];
      }
docs: Reads data for an event.
  @param [String => Mixed] $opts
  @return [String => Mixed]