| 1 | <?php |
||
| 23 | class AutoDateHistogramAggregation extends AbstractAggregation |
||
| 24 | { |
||
| 25 | use BucketingTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Inner aggregations container init. |
||
| 29 | * |
||
| 30 | * @param string $name |
||
| 31 | * @param string $field |
||
| 32 | * @param int $buckets |
||
| 33 | * @param string $format |
||
| 34 | */ |
||
| 35 | public function __construct($name, $field, $buckets = null, $format = null) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function getArray() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function getType() |
||
| 71 | } |
||
| 72 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: