private function buildDefinition($name, $target, $operator, $value)
    {
        return new CriterionDefinition([
            'name' => $name,
            'target' => $target,
            'operator' => $this->resolveOperator($operator, $value),
            'value' => $value,
        ]);
    }
private function buildDefinition($name, $target, $operator, $value)
    {
        return new CriterionDefinition([
            'name' => $name,
            'target' => $target,
            'operator' => $this->resolveOperator($operator, $value),
            'value' => $value,
        ]);
    }
private function buildDefinition ( $ name , $ target , $ operator , $ value ) { return new CriterionDefinition ( [ 'name' => $ name , 'target' => $ target , 'operator' => $ this -> resolveOperator ( $ operator , $ value ) , 'value' => $ value , ] ) ; }
Return CriterionDefinition instance from the given arguments.

@param string $name
@param string|null $target
@param string|null $operator
@param mixed $value

@return \Netgen\EzPlatformSiteApi\Core\Site\QueryType\CriterionDefinition
Return CriterionDefinition instance from the given arguments .