首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

ReflectionFunctionAbstract (class)

Introduction

(PHP 5 >= 5.2.0, PHP 7)

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

Class synopsis

ReflectionFunctionAbstract implements Reflector {

/* Properties */

public $name ;

/* Methods */

代码语言:javascript
复制
final private void __clone ( void )
代码语言:javascript
复制
public ReflectionClass getClosureScopeClass ( void )
代码语言:javascript
复制
public object getClosureThis ( void )
代码语言:javascript
复制
public string getDocComment ( void )
代码语言:javascript
复制
public int getEndLine ( void )
代码语言:javascript
复制
public ReflectionExtension getExtension ( void )
代码语言:javascript
复制
public string getExtensionName ( void )
代码语言:javascript
复制
public string getFileName ( void )
代码语言:javascript
复制
public string getName ( void )
代码语言:javascript
复制
public string getNamespaceName ( void )
代码语言:javascript
复制
public int getNumberOfParameters ( void )
代码语言:javascript
复制
public int getNumberOfRequiredParameters ( void )
代码语言:javascript
复制
public array getParameters ( void )
代码语言:javascript
复制
public ReflectionType getReturnType ( void )
代码语言:javascript
复制
public string getShortName ( void )
代码语言:javascript
复制
public int getStartLine ( void )
代码语言:javascript
复制
public array getStaticVariables ( void )
代码语言:javascript
复制
public bool hasReturnType ( void )
代码语言:javascript
复制
public bool inNamespace ( void )
代码语言:javascript
复制
public bool isClosure ( void )
代码语言:javascript
复制
public bool isDeprecated ( void )
代码语言:javascript
复制
public bool isGenerator ( void )
代码语言:javascript
复制
public bool isInternal ( void )
代码语言:javascript
复制
public bool isUserDefined ( void )
代码语言:javascript
复制
public bool isVariadic ( void )
代码语言:javascript
复制
public bool returnsReference ( void )
代码语言:javascript
复制
abstract public void __toString ( void )

}

Properties

name

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

Table of Contents

  • ReflectionFunctionAbstract::__clone — Clones function
  • ReflectionFunctionAbstract::getClosureScopeClass — Returns the scope associated to the closure
  • ReflectionFunctionAbstract::getClosureThis — Returns this pointer bound to closure
  • ReflectionFunctionAbstract::getDocComment — Gets doc comment
  • ReflectionFunctionAbstract::getEndLine — Gets end line number
  • ReflectionFunctionAbstract::getExtension — Gets extension info
  • ReflectionFunctionAbstract::getExtensionName — Gets extension name
  • ReflectionFunctionAbstract::getFileName — Gets file name
  • ReflectionFunctionAbstract::getName — Gets function name
  • ReflectionFunctionAbstract::getNamespaceName — Gets namespace name
  • ReflectionFunctionAbstract::getNumberOfParameters — Gets number of parameters
  • ReflectionFunctionAbstract::getNumberOfRequiredParameters — Gets number of required parameters
  • ReflectionFunctionAbstract::getParameters — Gets parameters
  • ReflectionFunctionAbstract::getReturnType — Gets the specified return type of a function
  • ReflectionFunctionAbstract::getShortName — Gets function short name
  • ReflectionFunctionAbstract::getStartLine — Gets starting line number
  • ReflectionFunctionAbstract::getStaticVariables — Gets static variables
  • ReflectionFunctionAbstract::hasReturnType — Checks if the function has a specified return type
  • ReflectionFunctionAbstract::inNamespace — Checks if function in namespace
  • ReflectionFunctionAbstract::isClosure — Checks if closure
  • ReflectionFunctionAbstract::isDeprecated — Checks if deprecated
  • ReflectionFunctionAbstract::isGenerator — Returns whether this function is a generator
  • ReflectionFunctionAbstract::isInternal — Checks if is internal
  • ReflectionFunctionAbstract::isUserDefined — Checks if user defined
  • ReflectionFunctionAbstract::isVariadic — Checks if the function is variadic
  • ReflectionFunctionAbstract::returnsReference — Checks if returns reference
  • ReflectionFunctionAbstract::__toString — To string

← ReflectionFunction::__toString

ReflectionFunctionAbstract::__clone →

代码语言:txt
复制
 © 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券