<?php
namespace SabaiApps\Framework\Criteria;

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

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