public function registerCustomType(string $typeName, string $className) { $this->customTypes[$typeName] = $className; return $this; }