MCPcopy Create free account
hub / github.com/apache/thrift / getPropertyValue

Method getPropertyValue

lib/php/test/Unit/Lib/ReflectionHelper.php:53–58  ·  view source on GitHub ↗

* Get the value of a private/protected property * * @param object $object * @param string $propertyName * @return mixed */

($object, string $propertyName)

Source from the content-addressed store, hash-verified

51 * @return mixed
52 */
53 protected function getPropertyValue($object, string $propertyName)
54 {
55 $property = $this->getAccessibleProperty($object, $propertyName);
56
57 return $property->getValue($object);
58 }
59
60 /**
61 * Set the value of a private/protected property

Callers 15

testSetAcceptTimeoutMethod · 0.80
testListenAndCloseMethod · 0.80
testAcceptMethod · 0.80
testListenAndCloseMethod · 0.80
testAcceptMethod · 0.80
testSetTimeoutSecsMethod · 0.80
testCloseMethod · 0.80
testReadMethod · 0.80
testReadAllMethod · 0.80
testWriteMethod · 0.80
testAddHeadersMethod · 0.80

Calls 2

getAccessiblePropertyMethod · 0.95
getValueMethod · 0.65

Tested by

no test coverage detected