Completed
Push — master ( c0d232...67b20e )
by Olivier
43:39 queued 05:10
created

ConstantScoreQuery   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace olvlvl\ElasticsearchDSL\Query\Compound;
4
5
class ConstantScoreQuery extends BoolQuery
6
{
7
	const NAME = 'constant_score';
8
9
	public function __construct(float $score = 1.0, array $options = [])
10
	{
11
		parent::__construct([
12
13
			self::OPTION_BOOST => $score,
14
15
		] + $options);
16
	}
17
}
18