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

ConstantScoreQuery::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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