The ReflectionFunctionAbstract class

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

Introduction

A parent class to ReflectionFunction , read its description for details.

Class synopsis

abstract class ReflectionFunctionAbstract implements Reflector {
/* Properties */
public string $name ;
/* Methods */
private function __clone (): void
public function getAttributes (? string $name = null , int $flags = 0): array
public function getClosureThis (): ? object
public function getClosureUsedVariables (): array
public function getDocComment (): string |false
public function getEndLine (): int |false
public function getExtension (): ? ReflectionExtension
public function getExtensionName (): string |false
public function getFileName (): string |false
public function getName (): string
public function getNamespaceName (): string
public function getNumberOfParameters (): int
public function getNumberOfRequiredParameters (): int
public function getParameters (): array
public function getReturnType (): ? ReflectionType
public function getShortName (): string
public function getStartLine (): int |false
public function getStaticVariables (): array
public function hasReturnType (): bool
public function hasTentativeReturnType (): bool
public function inNamespace (): bool
public function isClosure (): bool
public function isDeprecated (): bool
public function isGenerator (): bool
public function isInternal (): bool
public function isStatic (): bool
public function isUserDefined (): bool
public function isVariadic (): bool
public function returnsReference (): bool
abstract public function __toString (): void
}

Properties

name

Name of the function. Read-only, throws ReflectionException in attempt to write.

Table of Contents

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /