<?php
namespace SabaiApps\Framework\Criteria;

/**
 * IsGreaterThanCriteria class for representing a "greater than" condition in criteria evaluation.
 * Compares a field's value to a specific value.
 */
class IsGreaterThanCriteria extends AbstractValueCriteria {

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