SearchIndex_Null   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A commit() 0 2 1
A add() 0 2 1
A delete() 0 2 1
1
<?php
2
3
namespace SilverStripe\FullTextSearch\Search\Indexes;
4
5
/**
6
 * A search index that does nothing. Useful for testing
7
 */
8
abstract class SearchIndex_Null extends SearchIndex
9
{
10
    public function add($object)
11
    {
12
    }
13
14
    public function delete($base, $id, $state)
15
    {
16
    }
17
18
    public function commit()
19
    {
20
    }
21
}
22