for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\Core\Persistence\Legacy\Content\Query\CriterionHandler;
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
use eZ\Publish\Core\Persistence\Legacy\Content\Query\CriteriaConverter;
use eZ\Publish\Core\Persistence\Legacy\Content\Query\CriterionHandler;
use Doctrine\DBAL\Query\QueryBuilder;
class MatchNone implements CriterionHandler
{
* {@inheritdoc}
public function accept(Criterion $criterion): bool
return $criterion instanceof Criterion\MatchNone;
}
public function handle(CriteriaConverter $converter, QueryBuilder $query, Criterion $criterion)
return 'NOT 1';