Completed
Push — dev2 ( ea7092...761872 )
by Gordon
14:53
created

IdentityElasticaIndexingHelper   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 13
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A updateElasticsearchMapping() 0 3 1
A updateElasticsearchDocument() 0 3 1
A updateElasticHTMLFields() 0 3 1
1
<?php
2
namespace SilverStripe\Elastica;
3
4
class IdentityElasticaIndexingHelper extends Extension implements ElasticaIndexingHelperInterface {
5
	public function updateElasticsearchMapping(\Elastica\Type\Mapping $mapping) {
6
		return $mapping;
7
	}
8
9
	public function updateElasticsearchDocument(\Elastica\Document $document) {
10
		return $document;
11
	}
12
13
	public function updateElasticHTMLFields(array $htmlFields) {
14
		return $htmlFields;
15
	}
16
}
17