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.
*/
declare(strict_types=1);
namespace eZ\Publish\API\Repository\Values\Content\Query\Criterion;
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications;
class ObjectStateIdentifier extends Criterion
{
* @param string|string[] $value
* @param string|null $target
public function __construct($value, ?string $target = null)
parent::__construct($target, null, $value);
}
* @return \eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications[]
public function getSpecifications(): array
return [
new Specifications(
Operator::IN,
Specifications::FORMAT_ARRAY
),
Operator::EQ,
Specifications::FORMAT_SINGLE
];