\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

$items

$items : \PhpOffice\PhpSpreadsheet\IComparable[]

HashTable elements.

Type

IComparable[]

$keyMap

$keyMap : string[]

HashTable key map.

Type

string[]

Methods

__construct()

__construct(\PhpOffice\PhpSpreadsheet\IComparable[]  $pSource = null) : mixed

Create a new \PhpOffice\PhpSpreadsheet\HashTable.

Parameters

\PhpOffice\PhpSpreadsheet\IComparable[] $pSource

Optional source array to create HashTable from

Returns

mixed —

addFromSource()

addFromSource(\PhpOffice\PhpSpreadsheet\IComparable[]  $pSource = null) : void

Add HashTable items from source.

Parameters

\PhpOffice\PhpSpreadsheet\IComparable[] $pSource

Source array to create HashTable from

add()

add(\PhpOffice\PhpSpreadsheet\IComparable  $pSource) : void

Add HashTable item.

Parameters

\PhpOffice\PhpSpreadsheet\IComparable $pSource

Item to add

remove()

remove(\PhpOffice\PhpSpreadsheet\IComparable  $pSource) : void

Remove HashTable item.

Parameters

\PhpOffice\PhpSpreadsheet\IComparable $pSource

Item to remove

clear()

clear() : void

Clear HashTable.

count()

count() : int

Count.

Returns

int —

getIndexForHashCode()

getIndexForHashCode(string  $pHashCode) : int

Get index for hash code.

Parameters

string $pHashCode

Returns

int —

Index

getByIndex()

getByIndex(int  $pIndex) : \PhpOffice\PhpSpreadsheet\IComparable

Get by index.

Parameters

int $pIndex

Returns

\PhpOffice\PhpSpreadsheet\IComparable —

getByHashCode()

getByHashCode(string  $pHashCode) : \PhpOffice\PhpSpreadsheet\IComparable

Get by hashcode.

Parameters

string $pHashCode

Returns

\PhpOffice\PhpSpreadsheet\IComparable —

toArray()

toArray() : \PhpOffice\PhpSpreadsheet\IComparable[]

HashTable to array.

Returns

\PhpOffice\PhpSpreadsheet\IComparable[] —

__clone()

__clone() : mixed

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

Returns

mixed —