<?php
namespace SabaiApps\Framework\Criteria;

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

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