protected function likeCondition($value, $attribute, $like = false)
    {
        if (!is_string($attribute) || empty($attribute)) {
            return $this;
        }
        if ($like !== false) {
            return $this->andWhere([$like, $attribute, $value]);
        }
        return $this->andWhere([$attribute => $value]);
    }
protected function likeCondition($value, $attribute, $like = false)
    {
        if (!is_string($attribute) || empty($attribute)) {
            return $this;
        }
        if ($like !== false) {
            return $this->andWhere([$like, $attribute, $value]);
        }
        return $this->andWhere([$attribute => $value]);
    }
protected function likeCondition ( $ value , $ attribute , $ like = false ) { if ( ! is_string ( $ attribute ) || empty ( $ attribute ) ) { return $ this ; } if ( $ like !== false ) { return $ this -> andWhere ( [ $ like , $ attribute , $ value ] ) ; } return $ this -> andWhere ( [ $ attribute => $ value ] ) ; }
Attach like condition.
@param mixed $value
@param string $attribute
@param string|false $like false, 'like', 'or like', 'not like', 'or not like'.
@return $this
Attach like condition .