Object
Class Object is the root of the class hierarchy. Every class has Object as a superclass.
Instance attributes
- __class ⇒ Class
-
Object of Class class
Instance methods
- __get(name) ⇒ Value
-
Get any attribute value by it’s name
Table 1. Parameters name
String
Name of the attribute
ReturnAttribute value, or
nullif the object has no attribute with this name.
- __invoke(name, …) ⇒ Value
-
Execute any method, by it’s name
Table 2. Parameters name
String
Name of the method
…
Value
Any values that are required for method execution
ReturnMethod return value if method returns something. Calling a method that does not exist causes a runtime error.