public function addModule($category, $class) { if ($this->isValidModule($category, $class)) { $this->modules[$category][] = $class; } }