Behat\RestTestingExtension\RestTestingHelper::getProperty PHP Method

getProperty() public static method

Returns the current value of a property.
public static getProperty ( object | string $class, string $name ) : mixed
$class object | string The class instance or name.
$name string The name of a property.
return mixed The current value of the property.
    public static function getProperty($class, $name)
    {
        return static::findProperty($class, $name)->getValue(is_object($class) ? $class : null);
    }

Usage Example

 /**
  * @return ResponseInterface
  */
 protected function getResponse()
 {
     return RestTestingHelper::getProperty(self::getWebApiContext(), 'response');
 }