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

Class SetCriterionValue

Representation of a set of values, suitable for the SQL IN() function.

A set of values is created by concatenating values with the pipe sign ("|") e.g. "1|2|3".

ICanBoogie\Facets\CriterionValue\SetCriterionValue implements ICanBoogie\ToArray, Countable
Namespace: ICanBoogie\Facets\CriterionValue
Located at CriterionValue/SetCriterionValue.php

Methods summary

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

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

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

Parameters

$value

Returns

ICanBoogie\Facets\CriterionValue\SetCriterionValue|null
public __construct( array $set )
public __toString( void ) : string

Formats the set into a string.

Formats the set into a string.

Returns

string
public count( void ) : integer

Returns the number of members in the set.

Returns the number of members in the set.

Returns

integer

Implementation of

Countable::count()
public to_array( void ) : array

Returns the set as an array.

Returns the set as an array.

Returns

array

Constants summary

SEPARATOR : string
'|'

Properties summary

protected $set

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