public function __construct( protected string
$operator = self::OPERATOR_EQ,
protected ?string
$lineItemCreationDate = null
) { parent::
__construct();
} public function getConstraints(): array
{ return [ 'lineItemCreationDate' => RuleConstraints::
datetime(),
'operator' => RuleConstraints::
datetimeOperators(false
),
];
} public function match(RuleScope
$scope): bool
{ if ($this->lineItemCreationDate === null
) { return false;
} try { $ruleValue =
$this->
buildDate($this->lineItemCreationDate
);
}