|
mixed null | __invoke (... $args) |
| Make this callback interface callable.
|
|
|
mixed | _getMissingProp (string $prop) |
| Handle an attempt to get a non-existing property on this object.
|
|
| _setMissingProp (string $prop, $value) |
| Handle an attempt to set a non-existing property on this object.
|
|
◆ __invoke()
mixed null Wikimedia\IDLeDOM\Helper\OnErrorEventHandlerNonNull::__invoke |
( |
| $args | ) |
|
Make this callback interface callable.
- Parameters
-
- Returns
- mixed|null
◆ _getMissingProp()
mixed Wikimedia\IDLeDOM\Helper\OnErrorEventHandlerNonNull::_getMissingProp |
( |
string | $prop | ) |
|
|
protected |
Handle an attempt to get a non-existing property on this object.
The default implementation raises an exception but the implementor can choose a different behavior: return null (like JavaScript), dynamically create the property, etc.
- Parameters
-
string | $prop | the name of the property requested |
- Returns
- mixed
◆ _setMissingProp()
Wikimedia\IDLeDOM\Helper\OnErrorEventHandlerNonNull::_setMissingProp |
( |
string | $prop, |
|
|
| $value ) |
|
protected |
Handle an attempt to set a non-existing property on this object.
The default implementation raises an exception but the implementor can choose a different behavior: ignore the operation (like JavaScript), dynamically create the property, etc.
- Parameters
-
string | $prop | the name of the property requested |
mixed | $value | the value to set |
◆ cast()
Create a OnErrorEventHandlerNonNull from a callable.
- Parameters
-
callable | \Wikimedia\IDLeDOM\OnErrorEventHandlerNonNull | $f | |
- Returns
- \Wikimedia\IDLeDOM\OnErrorEventHandlerNonNull
- Parameters
-
callable | $f | |
Event | string | $event | |
?string | $source | |
?int | $lineno | |
?int | $colno | |
mixed | null | $error | |
- Returns
- mixed|null
The documentation for this class was generated from the following file:
- src/Helper/OnErrorEventHandlerNonNull.php