Location: PHPKode > projects > Spiral > ametaireau-spiral-272a2b1/framework/persistence/classes/query/CriterionFactory.php
<?php

namespace spiral\framework\persistence\query;

/**
 * Criterion factory
 * 
 * Create criterion from given parameters
 * 
 * @author		Frédéric Sureau <hide@address.com>
 * @copyright	2009 Spiral-project.org <http://www.spiral-project.org>
 * @license		GNU General Public License <http://www.gnu.org/licenses/gpl.html>
 */
interface CriterionFactory
{
	/**
	 * Create criterion from given operator, attribute and value
	 * 
	 * @param	int			$operator	Logical operator to use
	 * @param	string		$attribute	Attribute name
	 * @param	mixed		$value		Value
	 * 
	 * @return	Criterion	Criterion created
	 */
	public function createCriterion($operator, $attribute, $value);
}
Return current item: Spiral