for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace olvlvl\ElasticsearchDSL\Query;
use olvlvl\ElasticsearchDSL\Helpers;
class QueryCollection implements
HasTextQueries,
HasTermQueries,
HasCompoundQueries,
HasJoiningQueries,
\JsonSerializable
{
use TextQueries;
use TermQueries;
use CompoundQueries;
use JoiningQueries;
/**
* @inheritdoc
*/
public function __toString()
return json_encode($this, JSON_PRETTY_PRINT);
}
public function jsonSerialize()
return Helpers::merge_and_prefer_single(
$this->jsonSerializeTextQueries(),
$this->jsonSerializeTermQueries(),
$this->jsonSerializeCompoundQueries(),
$this->jsonSerializeJoiningQueries()
);