Example #1
0
 /**
  * @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);
     }
 }
Example #2
0
 /**
  * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer
  *
  * @return bool
  */
 public function accept(ClauseTransfer $clauseTransfer)
 {
     return strcasecmp($clauseTransfer->getOperator(), $this->getExpression()) === 0;
 }