« ReflectionProperty::__toString
ReflectionType::allowsNull »
PHP Manual
Reflection
The ReflectionType class
The ReflectionType class
(PHP 7)
Introduction
The
ReflectionType
class reports information about a function's return type.
Class synopsis
abstract
ReflectionType
{
/* Methods */
public
allowsNull
( ) :
bool
public
__toString
( ) :
string
}
Changelog
Version
Description
8.0.0
ReflectionType
has become abstract and
ReflectionType::isBuiltin()
has been moved to
ReflectionNamedType::isBuiltin()
.
Table of Contents
ReflectionType::allowsNull
— Checks if null is allowed
ReflectionType::__toString
— To string