略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ReflectionFunctionAbstract

2024-12-23

ReflectionFunctionAbstract 类

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

简介

ReflectionFunction 的父类,详情请阅读它的描述。

类摘要

class ReflectionFunctionAbstract implements Reflector {
/* 属性 */
public $name;
/* 方法 */
final private __clone(): void
public getAttributes(?string $name = null, int $flags = 0): array
public getClosureThis(): object
public getClosureUsedVariables(): array
public getDocComment(): string
public getEndLine(): int
public getExtensionName(): string
public getFileName(): string
public getName(): string
public getNamespaceName(): string
public getNumberOfParameters(): int
public getParameters(): array
public getShortName(): string
public getStartLine(): int
public getStaticVariables(): array
public hasReturnType(): bool
public hasTentativeReturnType(): bool
public inNamespace(): bool
public isClosure(): bool
public isDeprecated(): bool
public isGenerator(): bool
public isInternal(): bool
public isUserDefined(): bool
public isVariadic(): bool
public returnsReference(): bool
abstract public __toString(): void
}

属性

name

函数的名称。只读,尝试赋值的时候将会抛出 ReflectionException

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.reflectionfunctionabstract.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3