public function set($prop, $value) { if (!isset($this->_data[$prop]) || $this->_data[$prop] !== $value) { $this->_data[$prop] = $value; $this->_changed[] = $prop; } return $this; }