for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\ElasticsearchDSL\Query;
use ONGR\ElasticsearchDSL\BuilderInterface;
/**
* Represents Elasticsearch "not" query.
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-not-query.html
class NotQuery implements BuilderInterface
{
* @var array
private $query;
* @param BuilderInterface $query
public function __construct(BuilderInterface $query)
$this->query = $query;
$query
object<ONGR\ElasticsearchDSL\BuilderInterface>
array
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* {@inheritdoc}
public function getType()
return 'not';
public function toArray()
$output = [$this->getType() => $this->query->toArray()];
toArray
$this->query
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
return $output;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..