/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Util
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Util/ReflectionHelper.php (1486B)
setAccessible(true);
return $property->getValue($object);
}
/**
* Invoke a private method of an object.
*
* @param object $object
* @param string $method
* @param array $args
* @param string|null $class
* @return mixed
*/
public static function invokePrivateMethod($object, $method, $args = [], $class = null)
{
if (is_null($class)) {
$class = $object;
}
$method = new \ReflectionMethod($class, $method);
$method->setAccessible(true);
return $method->invokeArgs($object, $args);
}
/**
* Returns class name without namespace
*
* (does not use reflection actually)
*
* @param $object
* @return mixed
*/
public static function getClassShortName($object)
{
$path = explode('\\', get_class($object));
return array_pop($path);
}
}