public function updateObject(&$objectOrArray) { // TODO throw exception if not object or array if ($this->propertyPath !== null) { $this->propertyPath->setValue($objectOrArray, $this->getData()); } }