Passed
Push — master ( 9cf181...0135fb )
by Gordon
05:12 queued 02:38
created

IndexCreator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getIndexName() 0 3 1
A createIndex() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace Suilven\FreeTextSearch\Tests\Mock;
4
5
// @phpcs:disable SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
6
class IndexCreator extends \Suilven\FreeTextSearch\Base\IndexCreator implements
7
    \Suilven\FreeTextSearch\Interfaces\IndexCreator
8
{
9
10
    /** @var string */
11
    private static $indexName;
12
13
    public function createIndex(string $indexName): void
14
    {
15
        parent::createIndex($indexName);
16
    }
17
18
19
    public static function getIndexName(): string
20
    {
21
        return self::$indexName;
22
    }
23
}
24