MediaWiki  REL1_24
CLDRPluralRuleConverterExpression.php
Go to the documentation of this file.
00001 <?php
00018 class CLDRPluralRuleConverterExpression extends CLDRPluralRuleConverterFragment {
00020     public $type;
00021 
00023     public $rpn;
00024 
00025     function __construct( $parser, $type, $rpn, $pos, $length ) {
00026         parent::__construct( $parser, $pos, $length );
00027         $this->type = $type;
00028         $this->rpn = $rpn;
00029     }
00030 
00031     public function isType( $type ) {
00032         if ( $type === 'range' && ( $this->type === 'range' || $this->type === 'number' ) ) {
00033             return true;
00034         }
00035         if ( $type === $this->type ) {
00036             return true;
00037         }
00038 
00039         return false;
00040     }
00041 }