setValue() публичный Метод

Returns the value of the reflected property - even if it is protected.
public setValue ( object $object = null, mixed $value = null ) : void
$object object Instance of the declaring class to set the value on
$value mixed The value to set on the property
Результат void
 /**
  * @test
  */
 public function setValueEvenSetsValueOfAPublicProperty()
 {
     $reflectionProperty = new Reflection\PropertyReflection(__CLASS__, 'publicProperty');
     $reflectionProperty->setValue($this, 'modified');
     $this->assertEquals('modified', $this->publicProperty, 'ReflectionProperty->setValue() did not successfully set the value of a public property.');
 }