<?php
namespace SabaiApps\Framework\Criteria;

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

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