<?php
namespace SabaiApps\Framework\Criteria;

/**
 * NotInCriteria class for representing a "not in" condition in criteria evaluation.
 * Checks if a field's value is not within a specified array of values.
 */
class NotInCriteria extends InCriteria {

	/**
	 * Accepts a Visitor object for traversing or evaluating the "not in" 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->visitCriteriaNotIn( $this, $valuePassed );
	}
}
