Plural_Forms::get( int $num ): int

Get the plural form for a number.

Description

Caches the value for repeated calls.

Parameters

$numintrequired
Number to get plural form for.

Return

int Plural form value.

Source

public function get( $num ) {
	if ( isset( $this->cache[ $num ] ) ) {
		return $this->cache[ $num ];
	}
	$this->cache[ $num ] = $this->execute( $num );
	return $this->cache[ $num ];
}

Changelog

VersionDescription
4.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.