public function setProperty($property, $value) { $property = $this->reflection->getProperty($property); $property->setAccessible(true); $property->setValue($this->reflectedObject, $value); }