<?php
namespace SabaiApps\Framework\Criteria;

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

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