setProperty() public static method

Sets the new value of a property.
public static setProperty ( object | string $class, string $name, mixed $value ) : void
$class object | string The class instance or name.
$name string The name of a property.
$value mixed The new value.
return void
 /**
  * @param ResponseInterface $response
  * @return void
  */
 protected function setResponse(ResponseInterface $response)
 {
     RestTestingHelper::setProperty(self::getWebApiContext(), 'response', $response);
 }