<?php
namespace SabaiApps\Framework\Criteria;

/**
 * IsGreaterThanFieldCriteria class for representing a "greater than" condition between two fields.
 * Compares the value of one field to another field.
 */
class IsGreaterThanFieldCriteria extends AbstractFieldCriteria {

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