<?php
namespace SabaiApps\Framework\Criteria;

/**
 * IsNotCriteria class for representing a "not equal to" condition in criteria evaluation.
 * Compares a field's value to a specific value for inequality.
 */
class IsNotCriteria extends AbstractValueCriteria {

	/**
	 * Accepts a Visitor object for traversing or evaluating the "not equal to" criteria.
	 *
	 * @param IVisitor $visitor Visitor object.
	 * @param mixed    $valuePassed Value to pass to the visitor.
	 * @return mixed
	 */
	public function acceptVisitor( IVisitor $visitor, &$valuePassed ) {
		return $visitor->visitCriteriaIsNot( $this, $valuePassed );
	}
}
