<?php
namespace SabaiApps\Framework\Criteria;

/**
 * IsCriteria class for representing an "is" condition in criteria evaluation.
 * Compares a field to a specific value for equality.
 * Uses the visitor pattern for flexible evaluation logic.
 */
class IsCriteria extends AbstractValueCriteria {

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