public function get_module($id) { if (!$this->has_module($id)) { throw InvalidModuleException::for_id($id, 'read'); } return $this->modules[$id]; }