listMethods

Lists visible methods for an object.

Target member

Signature

1object->listMethods()

Lists visible methods for an object.

listMethods is called with member syntax on a receiver value. listMethods belongs to the object model. Use type constraints to document the value you expect and member syntax when behavior naturally belongs to an object.

Examples

Basic call

1string('x')->listMethods
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.