<?php
namespace SabaiApps\Framework\Criteria;

/**
 * IsFieldCriteria class for representing a "is field" condition in criteria evaluation.
 * Compares two fields for equality.
 * Uses the visitor pattern for flexible evaluation logic.
 */
class IsFieldCriteria extends AbstractFieldCriteria {

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