The ReflectionUnionType class
From Get docs
Php/docs/latest/class.reflectionuniontype
The ReflectionUnionType class
Introduction
(PHP 8)
Class synopsis
class ReflectionUnionType extends ReflectionType {
public getTypes(): array
/* Inherited methods */
public ReflectionType::allowsNull(): bool
public ReflectionType::__toString(): string
}
Table of Contents
- ReflectionUnionType::getTypes — Returns the types included in the union type
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.reflectionuniontype.php
/* Methods */