ICanBoogie/Facets master
  • Namespace
  • Class

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 ICanBoogie\Facets\CriterionValue\IntervalCriterionValue|null
# from( mixed $value )

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 string
# __toString( )

Formats the interval as a string.

Formats the interval as a string.

Returns

string
public array
# to_array( )

Returns

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

Constants summary

string SEPARATOR
# '..'

Properties summary

public $min
#
public $max
#
ICanBoogie/Facets master API documentation generated by ApiGen