You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,11 @@ This library provides a performance-improved, and convenient way to deal with PH
5
5
6
6
***Performance:** Reflection is slow if you instantiate it continuously. If you rely on reflection heavily to inspect the same type of classes in one request over and over again, then caching of the created Reflection classes helps a lot.
7
7
8
-
***Convenience:** Instead of dealing with the object graph of Reflection classes, a facade offers convenient methods to retrieve PHP Reflection classes, and getting/setting (non-public) properties of an object.
8
+
***Convenience:** Instead of dealing with the object graph of Reflection classes, a facade offers convenient methods to
9
+
10
+
* retrieve PHP Reflection classes,
11
+
* getting/setting static and non-static properties of an object or class,
12
+
* invoking static and non-static methods of an object or class.
The public API of this package is presented via the `Reflection` class. All methods of the `Reflection` class are static. (In fact, it is not possible to instantiate it.)
26
+
The public API of this package is available via the `ScaleUpStack\Reflection\Reflection` class. All methods of the `Reflection` class are static. (In fact, it is not possible to instantiate it.)
23
27
24
28
* Namespace
25
29
@@ -48,7 +52,7 @@ The public API of this package is presented via the `Reflection` class. All meth
48
52
49
53
Please note that `classByObject()` returns a `\ReflectionClass` and not a `\ReflectionObject`.
50
54
51
-
* Methods to access the values of object or static class properties:
55
+
* Methods to access static and non-static properties:
@@ -68,7 +72,7 @@ The public API of this package is presented via the `Reflection` class. All meth
68
72
69
73
## Current State
70
74
71
-
This library is work-in-progress, but the public API should be very stable.
75
+
This library is stable.
72
76
73
77
Handling of some Reflection features that could (perhaps?) benefit from caching (e.g. getting the parent class) are not implemented yet. But I do not strive for completeness. If you are missing some features, just create a pull request or ask for it, explaining your context/needs.
0 commit comments