/** * Sets the new ID of the item. * * @param string|null $id ID of the item */ public function setId($id) { if (($this->values['id'] = \Aimeos\MShop\Common\Item\Base::checkId($this->getId(), $id)) === null) { $this->modified = true; } else { $this->modified = false; } }
/** * Sets the new ID of the item. * * @param string|null $id ID of the item * @return \Aimeos\MShop\Common\Item\Iface Item for chaining method calls */ public function setId($id) { $key = $this->prefix . 'id'; if (($this->values[$key] = \Aimeos\MShop\Common\Item\Base::checkId($this->getId(), $id)) === null) { $this->modified = true; } else { $this->modified = false; } $this->values['id'] = $this->values[$key]; return $this; }