First release beta

This commit is contained in:
Tom Lingham
2014-07-14 10:35:19 +10:00
parent 4c0890f936
commit 44ace92f93
20 changed files with 683 additions and 1 deletions

View File

@ -0,0 +1,32 @@
<?php namespace TomLingham\Searchy\Matchers;
/**
* Matches against any occurrences of a string within a string and is case-insensitive.
*
* For example, a search for 'smi' would match; 'John Smith' or 'Smiley Face'
*
* Class InStringMatcher
* @package TomLingham\Searchy\Matchers
*/
class InStringMatcher extends BaseMatcher
{
/**
* @var string
*/
protected $operator = 'LIKE';
/**
* @var int
*/
protected $multiplier = 30;
/**
* @param $searchString
* @return string
*/
public function formatSearchString( $searchString ){
return "%$searchString%";
}
}