Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Internal\MapValueHasher Class Reference

Generates hashes for associative arrays based on the values of their elements. More...

Public Member Functions

 __construct ( $holdOrderIntoAccount=false)
 
 hash ( $map)
 Computes and returns the hash of the provided map.
 

Private Attributes

 $isOrdered
 

Detailed Description

Generates hashes for associative arrays based on the values of their elements.

Since
0.1
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Internal\MapValueHasher::__construct ( $holdOrderIntoAccount = false)

Member Function Documentation

◆ hash()

Wikibase\DataModel\Internal\MapValueHasher::hash ( $map)

Computes and returns the hash of the provided map.

Since
0.1
Parameters
Traversable$map
Returns
string
Exceptions
InvalidArgumentException

Member Data Documentation

◆ $isOrdered

Wikibase\DataModel\Internal\MapValueHasher::$isOrdered
private

The documentation for this class was generated from the following file: