<?php
namespace SabaiApps\Framework\Criteria;

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

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