/** * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer * * @return void */ public function convertDecimalToCent(ClauseTransfer $clauseTransfer) { if ($clauseTransfer->getOperator() === IsNotIn::EXPRESSION || $clauseTransfer->getOperator() === IsIn::EXPRESSION) { $this->convertListPrice($clauseTransfer); } else { $this->convertSinglePrice($clauseTransfer); } }
/** * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer * * @return bool */ public function accept(ClauseTransfer $clauseTransfer) { return strcasecmp($clauseTransfer->getOperator(), $this->getExpression()) === 0; }