<?php
namespace SabaiApps\Framework\Criteria;

/**
 * InCriteria class for representing an "in" condition in criteria evaluation.
 * Checks if a field's value is within a specified array of values.
 * Uses the visitor pattern for flexible evaluation logic.
 */
class InCriteria extends AbstractArrayCriteria {

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