<?php
namespace SabaiApps\Framework\Criteria;

/**
 * EndsWithCriteria class for representing a "ends with" condition in criteria evaluation.
 * Uses the visitor pattern for flexible evaluation logic.
 */
class EndsWithCriteria extends AbstractValueCriteria {

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