/** * @param Type[] $type_list * A list of types * * @return bool * True if this union type contains any of the given * named types */ public function hasAnyType(array $type_list) : bool { return $this->type_set->containsAny($type_list); }