Passed
Pull Request — master (#17)
by Gordon
03:48
created

Indexer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
1
<?php declare(strict_types = 1);
2
3
/**
4
 * Created by PhpStorm.
5
 * User: gordon
6
 * Date: 24/3/2561
7
 * Time: 20:36 น.
8
 */
9
10
namespace Suilven\FreeTextSearch\Tests\Mock;
11
12
use SilverStripe\ORM\DataObject;
13
14
class Indexer extends \Suilven\FreeTextSearch\Base\Indexer implements \Suilven\FreeTextSearch\Interfaces\Indexer
15
{
16
17
    public function index(DataObject $dataObject): void
18
    {
19
        // Do nothing, this is for testing
20
        \error_log('INDEXING ' . $dataObject->ID);
21
    }
22
}
23