<?php
namespace app\components\filtering;
use yii\db\ExpressionInterface;
interface ICondition
{
/**
*
* @param string $attribute attribute name
* @param mixed $value value to check
* @param string $modelClass model class name
* @return string|array|ExpressionInterface
*/
public static function get($attribute, $value, $modelClass);
/**
*
* @param string $attribute attribute name
* @param mixed $value value to check
* @return boolean
*/
public static function is($attribute, $value);
}