Completed
Push — master ( 3fcf5a...d8871c )
by Florian
11:12
created

FileTypeFacet   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getField() 0 3 1
A getFormOptions() 0 6 1
A getFacetFormatter() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Stinger Entity Search package.
5
 *
6
 * (c) Oliver Kotte <[email protected]>
7
 * (c) Florian Meyer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace StingerSoft\EntitySearchBundle\Services\Facet;
14
15
use StingerSoft\EntitySearchBundle\Model\Document;
16
17
class FileTypeFacet implements FacetServiceInterface {
18
19
	const SERVICE_ID = 'stinger_soft_entity_search.facets.filetype';
20
21
	public function getField() {
22
		return Document::FIELD_CONTENT_TYPE;
23
	}
24
25
	public function getFormOptions() {
26
		return array(
27
			'label'              => 'stinger_soft_entity_search.forms.query.filetype.label',
28
			'translation_domain' => 'StingerSoftEntitySearchBundle'
29
		);
30
	}
31
32
	public function getFacetFormatter() {
33
		return null;
34
	}
35
36
}