ICanBoogie
  • Documentation
  • API Reference
  • CLDR master
Namespaces
  • ICanBoogie
    • CLDR
      • Plurals
      • Units
Classes
  • Operands
  • Relation
  • Rule
  • Samples

Class Relation

Representation of a plural rule relation.

Final
Namespace: ICanBoogie\CLDR\Plurals
See: http://unicode.org/reports/tr35/tr35-numbers.html#Relations
Located at Plurals/Relation.php

Methods summary

public static from( string $relation ) : ICanBoogie\CLDR\Plurals\Relation

Parameters

$relation

Returns

ICanBoogie\CLDR\Plurals\Relation
public resolve_x( ICanBoogie\CLDR\Plurals\Operands $operands ) : number

Resolve x.

Resolve x.

Parameters

$operands

Returns

number
public evaluate( ICanBoogie\CLDR\Plurals\Operands $operands ) : boolean

Parameters

$operands

Returns

boolean
true if the operands satisfy the rule, false otherwise.

Constants summary

RANGE_SEPARATOR : string
'..'
MODULUS_SIGN : string
'%'
CLDR master – Check on GitHub – API documentation generated by ApiGen