ReflectionClass::getName

(PHP 5, PHP 7) Gets class name public string ReflectionClass::getName ( void ) Gets the class name. Returns: The class name. This function is currently not documented; only its argument list is available. Examples: ReflectionClass::getName() example <?php namespace A\B; clas

ReflectionClass::getModifiers

(PHP 5, PHP 7) Gets modifiers public int ReflectionClass::getModifiers ( void ) Returns a bitfield of the access modifiers for this class. Returns: Returns bitmask of modifier constants. See also: ReflectionClass::getProperties() -

ReflectionClass::getMethods

(PHP 5, PHP 7) Gets an array of methods public array ReflectionClass::getMethods ([ int $filter ] ) Gets an array of methods for the class. Parameters: filter Filter the results to include only methods with certain attributes. Defaults to no filtering. Any combination of ReflectionMethod::IS_STATIC, ReflectionMethod::IS_PUBLIC, ReflectionMethod::IS_PROTECTED, Reflection

ReflectionClass::getMethod

(PHP 5, PHP 7) Gets a ReflectionMethod for a class method. public ReflectionMethod ReflectionClass::getMethod ( string $name ) Gets a ReflectionMethod for a class method. Parameters: name The method name to reflect. Returns: A ReflectionMethod. Exception: A ReflectionException if the method does not exist.

ReflectionClass::getInterfaces

(PHP 5, PHP 7) Gets the interfaces public array ReflectionClass::getInterfaces ( void ) Gets the interfaces. Returns: An associative array of interfaces, with keys as interface names and the array values as ReflectionClass objects. Examples: ReflectionClass::getInterfaces() example <?php interface Foo { } interface Ba

ReflectionClass::getInterfaceNames

(PHP 5 >= 5.2.0, PHP 7) Gets the interface names public array ReflectionClass::getInterfaceNames ( void ) Get the interface names. Returns: A numerical array with interface names as the values. Examples: ReflectionClass::getInterfaceNames() example <?php interface Foo { } interface Bar { } class Baz implements Foo

ReflectionClass::getFileName

(PHP 5, PHP 7) Gets the filename of the file in which the class has been defined public string ReflectionClass::getFileName ( void ) Gets the filename of the file in which the class has been defined. Returns: Returns the filename of the file in which the class has been defined. If the class is defined in the PHP core or in a PHP extension, FALSE is returned.

ReflectionClass::getExtensionName

(PHP 5, PHP 7) Gets the name of the extension which defined the class public string ReflectionClass::getExtensionName ( void ) Gets the name of the extension which defined the class. Returns: The name of the extension which defined the class, or FALSE for user-defined classes. Examples: Basic usage of ReflectionClass::getExtensionName(

ReflectionClass::getExtension

(PHP 5, PHP 7) Gets a ReflectionExtension object for the extension which defined the class public ReflectionExtension ReflectionClass::getExtension ( void ) Gets a ReflectionExtension object for the extension which defined the class. Returns: A ReflectionExtension object representing the extension which defined the class, or NULL for user-defined classes.

ReflectionClass::getEndLine

(PHP 5, PHP 7) Gets end line public int ReflectionClass::getEndLine ( void ) Gets end line number from a user-defined class definition. Returns: The ending line number of the user defined class, or FALSE if unknown. Examples: ReflectionClass::getEndLine() example <?php // Test Class class TestClass { } $rc = new Refle