ICanBoogie
  • Documentation
  • API Reference
  • Facets master
Namespaces
  • ICanBoogie
    • Facets
      • Criterion
      • CriterionValue
      • Fetcher
      • RecordCollection
Classes
  • IntervalCriterionValue
  • SetCriterionValue

Class IntervalCriterionValue

Representation of an interval, suitable for the SQL BETWEEN operator.

An interval is created by separating two values with two dots ("..") e.g. "2000..2014".

ICanBoogie\Facets\CriterionValue\IntervalCriterionValue implements ICanBoogie\ToArray
Namespace: ICanBoogie\Facets\CriterionValue
Located at CriterionValue/IntervalCriterionValue.php

Methods summary

public static from( mixed $value ) : ICanBoogie\Facets\CriterionValue\IntervalCriterionValue|null

Instantiate a ICanBoogie\Facets\CriterionValue\IntervalCriterionValue instance from a value.

Instantiate a ICanBoogie\Facets\CriterionValue\IntervalCriterionValue instance from a value.

Parameters

$value

Returns

ICanBoogie\Facets\CriterionValue\IntervalCriterionValue|null
public __construct( $min, $max )
public __toString( void ) : string

Formats the interval as a string.

Formats the interval as a string.

Returns

string
public to_array( void ) : array

Returns

array
An array made of the ICanBoogie\Facets\CriterionValue\IntervalCriterionValue::$min and ICanBoogie\Facets\CriterionValue\IntervalCriterionValue::$max values.

Constants summary

SEPARATOR : string
'..'

Properties summary

public $min

		
public $max

		
Facets master – Check on GitHub – API documentation generated by ApiGen