\PhpOffice\PhpSpreadsheetHashTable

Summary

Methods
Properties
Constants
__construct()
addFromSource()
add()
remove()
clear()
count()
getIndexForHashCode()
getByIndex()
getByHashCode()
toArray()
__clone()
No public properties found
No constants found
No protected methods found
$items
$keyMap
N/A
No private methods found
No private properties found
N/A

Properties

$keyMap

$keyMap : array<mixed,string>

HashTable key map.

Type

array<mixed,string>

Methods

__construct()

__construct(array<mixed,\PhpOffice\PhpSpreadsheet\IComparable>  $pSource = null) 

Create a new \PhpOffice\PhpSpreadsheet\HashTable.

Parameters

array<mixed,\PhpOffice\PhpSpreadsheet\IComparable> $pSource

Optional source array to create HashTable from

Throws

\PhpOffice\PhpSpreadsheet\Exception

addFromSource()

addFromSource(array<mixed,\PhpOffice\PhpSpreadsheet\IComparable>  $pSource = null) 

Add HashTable items from source.

Parameters

array<mixed,\PhpOffice\PhpSpreadsheet\IComparable> $pSource

Source array to create HashTable from

Throws

\PhpOffice\PhpSpreadsheet\Exception

clear()

clear() 

Clear HashTable.

count()

count() : integer

Count.

Returns

integer

getIndexForHashCode()

getIndexForHashCode(string  $pHashCode) : integer

Get index for hash code.

Parameters

string $pHashCode

Returns

integer —

Index

__clone()

__clone() 

Implement PHP __clone to create a deep clone, not just a shallow copy.