if ($this->lineItemCreationDate === null
) { return false;
} try { $ruleValue =
$this->
buildDate($this->lineItemCreationDate
);
} catch (\Exception
) { return false;
} if ($scope instanceof LineItemScope
) { return $this->
matchesCreationDate($scope->
getLineItem(),
$ruleValue);
} if (!
$scope instanceof CartRuleScope
) { return false;
} foreach ($scope->
getCart()->
getLineItems()->
filterGoodsFlat() as $lineItem) { if ($this->
matchesCreationDate($lineItem,
$ruleValue)) { return true;
} }