protected function parseCriterion(array $criterionData): Criterion
    {
        return new Criterion([
            Criterion::ATTRIBUTE => $criterionData[0] ?? null,
            Criterion::OPERATOR => $criterionData[1] ?? null,
            Criterion::VALUE => $criterionData[2] ?? null,
            Criterion::BOOLEAN => $criterionData[3] ?? 'and',
        ]);
    }
protected function parseCriterion(array $criterionData): Criterion
    {
        return new Criterion([
            Criterion::ATTRIBUTE => $criterionData[0] ?? null,
            Criterion::OPERATOR => $criterionData[1] ?? null,
            Criterion::VALUE => $criterionData[2] ?? null,
            Criterion::BOOLEAN => $criterionData[3] ?? 'and',
        ]);
    }
protected function parseCriterion ( array $ criterionData ) : Criterion { return new Criterion ( [ Criterion :: ATTRIBUTE => $ criterionData [ 0 ] ?? null , Criterion :: OPERATOR => $ criterionData [ 1 ] ?? null , Criterion :: VALUE => $ criterionData [ 2 ] ?? null , Criterion :: BOOLEAN => $ criterionData [ 3 ] ?? 'and' , ] ) ; }
Transforms criterion data into DTO.

@param array $criterionData Criterion data to transform

@return Criterion
Transforms criterion data into DTO .