Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 453 Bytes

IteratableToNodeConverter.md

File metadata and controls

14 lines (10 loc) · 453 Bytes

IteratableToNodeConverter

Bool value

<?php

use Saxulum\ElasticSearchQueryBuilder\Converter\IteratableToNodeConverter;
use Saxulum\ElasticSearchQueryBuilder\Converter\ScalarToNodeConverter;
use Saxulum\ElasticSearchQueryBuilder\Node\ObjectNode;

$iteratableConverter = new IteratableToNodeConverter(new ScalarToNodeConverter);
$iteratableConverter->convert(['key' => [bool, 1.234, 1, null, 'string']]); // instanceof ObjectNode::class