The ReflectionType class

(PHP 7)

简介

ReflectionType 类用于获取函数、类方法的参数或者返回值的类型。

类摘要

ReflectionType {
/* 方法 */
public allowsNull ( void ) : bool
public isBuiltin ( void ) : bool
public __toString ( void ) : string
}

Table of Contents

add a note add a note

User Contributed Notes 2 notes

up
10
1franck
2 months ago
For those who stumble on notice about ReflectionType::__toString() beeing deprecated, use method ReflectionType::getName() instead which is not yet documented.
up
-1
roland at mxchange dot org
18 days ago
I guess it is <?php ReflectionNamedType::getName(); ?> ?
To Top