<?php
namespace SabaiApps\Framework\Criteria;

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

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