public function getCartPriceRuleTagItem(Tag $tag = null, $quantity = 1) { if ($tag === null) { $tag = $this->getTag(); } $tagItem = new CartPriceRuleTagItem($tag, $quantity); $tagItem->setUpdated(); return $tagItem; }