MatchAllQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 2
1
<?php
2
3
namespace olvlvl\ElasticsearchDSL\Query\Text;
4
5
use olvlvl\ElasticsearchDSL\Query\Option\BoostOption;
6
use olvlvl\ElasticsearchDSL\Query\Option\HasBoostOption;
7
use olvlvl\ElasticsearchDSL\Query\QueryAbstract;
8
9
class MatchAllQuery extends QueryAbstract implements HasBoostOption
10
{
11
	use BoostOption;
12
13
	const NAME = 'match_all';
14
15
	/**
16
	 * @inheritdoc
17
	 */
18
	public function jsonSerialize()
19
	{
20
		return [ self::NAME => parent::jsonSerialize() ?: (object) [] ];
21
	}
22
}
23