<?php
namespace SabaiApps\Framework\Criteria;

/**
 * StartsWithCriteria class for representing a "starts with" condition in criteria evaluation.
 * Checks if a field's value starts with a specific value.
 */
class StartsWithCriteria extends AbstractValueCriteria {

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