realType = $realType; } /** * Provide access to the actual type directly, if needed. */ public function getActualType(): Type { return $this->realType; } /** * Returns a rendered output of the Type as it would be used in a DocBlock. */ public function __toString(): string { return '?' . $this->realType->__toString(); } }