ICanBoogie
  • Documentation
  • API Reference
  • Facets v0.3.1
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 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\SetCriterionValue implements ICanBoogie\ToArray, Countable
Namespace: ICanBoogie\Facets
Located at SetCriterionValue.php

Methods summary

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

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

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

Parameters

$value

Returns

ICanBoogie\Facets\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 v0.3.1 – Check on GitHub – API documentation generated by ApiGen