protected function getObjectType($class) { if (is_array($class)) { return $this->typeSystem->getCompositeType(array_map([$this->typeSystem, 'getObjectType'], $class)); } else { return $this->typeSystem->getObjectType($class); } }