$ids =
array_filter($ids);
if (empty($ids)) { throw DataAbstractionLayerException::
invalidCriteriaIds($ids, 'Ids should not be empty'
);
} $this->
validateIds($ids);
$this->ids =
$ids;
} public function __toString(): string
{ $parsed =
(new CriteriaArrayConverter(new AggregationParser()))->
convert($this);
return Json::
encode($parsed);
} /**
* @return array<string>|array<array<string, string>>
*/
public function getIds(): array
{ return $this->ids;
}