Completed
Push — master ( b910d2...f64c4a )
by Peter
05:03
created

SearchBoost::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace Maslosoft\Manganel\Annotations;
10
11
use Maslosoft\Manganel\Meta\ManganelTypeAnnotation;
12
13
/**
14
 * SearchBoost
15
 * 
16
 * Use this annotation to increase or decreate importance of field in search
17
 * results. Use positive values to increase importance, and negative to
18
 * decrease.
19
 * 
20
 * Increase importance example:
21
 * 
22
 * ```php
23
 * @SearchBoost(3)
24
 * ```
25
 * 
26
 * Decrease importance example:
27
 * 
28
  ```php
29
 * @SearchBoost(-3)
30
 * ```
31
 * 
32
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
33
 */
34
class SearchBoost extends ManganelTypeAnnotation
35
{
36
37
	const Ns = __NAMESPACE__;
38
39
	public function init()
40
	{
41
		throw new \Exception('Not implemented');
42
	}
43
44
}
45