ICanBoogie/Facets v0.3.1
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Facets
      • RecordCollection

Classes

  • BooleanCriterion
  • Criterion
  • CriterionList
  • CriterionNotDefined
  • CriterionValue
  • Fetcher
  • IntervalCriterionValue
  • QueryString
  • QueryStringWord
  • RecordCollection
  • SetCriterionValue

Interfaces

  • CriterionInterface
  • FetcherInterface

Traits

  • CriterionTrait
  • FetcherTrait
  • HumanizePairsTrait
  • ParseQueryStringTrait

Class CriterionValue

Representation of a generic criterion value.

Namespace: ICanBoogie\Facets
Package: ICanBoogie\Facets
Located at CriterionValue.php

Methods summary

public static ICanBoogie\Facets\SetCriterionValue|ICanBoogie\Facets\IntervalCriterionValue|mixed
# from( mixed $value )

Creates an instance from the specified criterion value.

Creates an instance from the specified criterion value.

Only instances of ICanBoogie\Facets\SetCriterionValue and ICanBoogie\Facets\IntervalCriterionValue are currently supported. The criterion value is returned as is if it cannot be represented by either one of these classes.

Note: ICanBoogie\Facets\IntervalCriterionValue instances are replaced with simpler values whenever possible. For instance 1..1 or [ 'min' => 1, 'max' => 1 ] are both replaced by 1.

Parameters

$value

Returns

ICanBoogie\Facets\SetCriterionValue|ICanBoogie\Facets\IntervalCriterionValue|mixed
public
# __construct( $value )
public
# __toString( )

Properties summary

protected $value
#
ICanBoogie/Facets v0.3.1 API documentation generated by ApiGen