File manager - Edit - /var/www/payraty/helpdesk/vendor/handcraftedinthealps/elasticsearch-dsl/src/Aggregation/Bucketing/AutoDateHistogramAggregation.php
Back
<?php /* * This file is part of the ONGR package. * * (c) NFQ Technologies UAB <info@nfq.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ONGR\ElasticsearchDSL\Aggregation\Bucketing; use ONGR\ElasticsearchDSL\Aggregation\AbstractAggregation; use ONGR\ElasticsearchDSL\Aggregation\Type\BucketingTrait; use ONGR\ElasticsearchDSL\BuilderInterface; /** * Class representing AutoDateHistogramAggregation. * * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-autodatehistogram-aggregation.html */ class AutoDateHistogramAggregation extends AbstractAggregation { use BucketingTrait; /** * Inner aggregations container init. * * @param string $name * @param string $field * @param int $buckets * @param string $format */ public function __construct($name, $field, $buckets = null, $format = null) { parent::__construct($name); $this->setField($field); if ($buckets) { $this->addParameter('buckets', $buckets); } if ($format) { $this->addParameter('format', $format); } } /** * {@inheritdoc} */ public function getArray() { $data = array_filter( [ 'field' => $this->getField(), ] ); return $data; } /** * {@inheritdoc} */ public function getType() { return 'auto_date_histogram'; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings