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

Class Rule

Representation of plural samples.

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

Methods summary

public static from( string $rule ) : ICanBoogie\CLDR\Plurals\Rule

Parameters

$rule

Returns

ICanBoogie\CLDR\Plurals\Rule
public validate( number $number ) : boolean

Parameters

$number

Returns

boolean
true if the number matches the rules, false otherwise.
CLDR master – Check on GitHub – API documentation generated by ApiGen