4747 */
4848trait ReflectionHelper
4949{
50-
5150 /**
5251 * Find a private method invoker.
5352 *
54- * @param object|string $obj object or class name
55- * @param string $method method name
53+ * @param object|string $obj object or class name
54+ * @param string $method method name
55+ *
5656 * @return \Closure
57+ * @throws \ReflectionException
5758 */
5859 public static function getPrivateMethodInvoker ($ obj , $ method )
5960 {
@@ -74,6 +75,7 @@ public static function getPrivateMethodInvoker($obj, $method)
7475 * @param string $property
7576 *
7677 * @return \ReflectionProperty
78+ * @throws \ReflectionException
7779 */
7880 private static function getAccessibleRefProperty ($ obj , $ property )
7981 {
@@ -98,6 +100,8 @@ private static function getAccessibleRefProperty($obj, $property)
98100 * @param object|string $obj object or class name
99101 * @param string $property property name
100102 * @param mixed $value value
103+ *
104+ * @throws \ReflectionException
101105 */
102106 public static function setPrivateProperty ($ obj , $ property , $ value )
103107 {
@@ -108,9 +112,11 @@ public static function setPrivateProperty($obj, $property, $value)
108112 /**
109113 * Retrieve a private property.
110114 *
111- * @param object|string $obj object or class name
112- * @param string $property property name
115+ * @param object|string $obj object or class name
116+ * @param string $property property name
117+ *
113118 * @return mixed value
119+ * @throws \ReflectionException
114120 */
115121 public static function getPrivateProperty ($ obj , $ property )
116122 {
0 commit comments