MAKS\AmqpAgent\Helper\ClassProxy
A class containing methods for proxy methods calling, properties manipulation, and class utilities.
Call example:
```
ClassProxy::call($object, 'someMethod', $arguments);
```
Get example:
```
ClassProxy::get($object, 'someProperty');
```
Set example:
```
ClassProxy::set($object, 'someProperty', $newValue);
```
Cast example:
```
ClassProxy::cast($object, 'Namespace\SomeClass');
```
Synopsis
- // Inherited methods from ClassProxyTrait
- public static mixed callMethod()
- public static mixed call()
- public static mixed getProperty()
- public static mixed get()
- public static mixed setProperty()
- public static mixed set()
- public static ReflectionClass reflectOnClass()
- public static ReflectionObject reflectOnObject()
- public static castObjectToClass()
- public static cast()
Hierarchy
Coverage
Methods | 0% | 0 / 0 |
Lines | 0% | 0 / 0 |
Methods
Inherited from MAKS\AmqpAgent\Helper\ClassProxyTrait
public
- call() — Calls a private, protected, or public method on an object.
- callMethod() — Calls a private, protected, or public method on an object.
- cast() — Tries to cast an object into a new class. Similar classes work best.
- castObjectToClass() — Tries to cast an object into a new class. Similar classes work best.
- get() — Gets a private, protected, or public property (default, static, or constant) of an object.
- getProperty() — Gets a private, protected, or public property (default, static, or constant) of an object.
- reflectOnClass() — Returns a reflection class instance on a class.
- reflectOnObject() — Returns a reflection object instance on an object.
- set() — Sets a private, protected, or public property (default or static) of an object.
- setProperty() — Sets a private, protected, or public property (default or static) of an object.
History
-
2021-01-12T21:10:21+00:00 (commit #d09424b)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Add strict types declaration * Add declare(strict_types=1) to all files * Fix file header DocBlock spacing of all files
-
2020-12-03T21:36:25+00:00 (commit #4fae82d)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Update class proxy class * Add a missing use statement * Add a new example to class DocBlock
-
2020-12-02T22:39:34+00:00 (commit #b8fcd3a)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Add class proxy class * Add ClassProxy.php * Add ClassProxyTrait.php