Function __global->get_class_methods
Definitions
sources_custom/phpstub.php
- Gets the class methods' names.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $class_name | string | No | No | required parameter | N/A | N/A | The class name or an object instance |
Returns
- An array of method names defined for the class specified by $class_name (null: error)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Gets the class methods' names.
*
* @param string $class_name The class name or an object instance
* @return ?array An array of method names defined for the class specified by $class_name (null: error)
*/
function get_class_methods(string $class_name) : ?array
* Gets the class methods' names.
*
* @param string $class_name The class name or an object instance
* @return ?array An array of method names defined for the class specified by $class_name (null: error)
*/
function get_class_methods(string $class_name) : ?array

