| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FullTextMatch implements ExpressionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $search; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var mixed |
||
| 19 | */ |
||
| 20 | protected $value; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var bool |
||
| 24 | */ |
||
| 25 | protected $booleanMode; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor |
||
| 29 | * |
||
| 30 | * @param string $search |
||
| 31 | * @param array $value |
||
| 32 | * @param boolean $booleanMode |
||
| 33 | */ |
||
| 34 | public function __construct($search, $value, $booleanMode = false) |
||
| 35 | { |
||
| 36 | $this->search = $search; |
||
| 37 | $this->value = $value; |
||
| 38 | $this->booleanMode = $booleanMode; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * FULLTEXT search |
||
| 43 | * |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function build($query, $compiler) |
||
| 57 | } |
||
| 58 | } |
||
| 59 |