Documentation

HashTable

Table of Contents

$items HashTable elements. \PhpOffice\PhpSpreadsheet\IComparable[]
$keyMap HashTable key map. string[]
__construct() Create a new \PhpOffice\PhpSpreadsheet\HashTable. mixed
addFromSource() Add HashTable items from source. void
add() Add HashTable item. void
remove() Remove HashTable item. void
clear() Clear HashTable. void
count() Count. int
getIndexForHashCode() Get index for hash code. int
getByIndex() Get by index. IComparable
getByHashCode() Get by hashcode. IComparable
toArray() HashTable to array. \PhpOffice\PhpSpreadsheet\IComparable[]
__clone() Implement PHP __clone to create a deep clone, not just a shallow copy. mixed

Properties

$items

HashTable elements.

protected \PhpOffice\PhpSpreadsheet\IComparable[] $items = []

$keyMap

HashTable key map.

protected string[] $keyMap = []

Methods

__construct()

Create a new \PhpOffice\PhpSpreadsheet\HashTable.

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

Optional source array to create HashTable from

Return values
mixed

addFromSource()

Add HashTable items from source.

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

Source array to create HashTable from

clear()

Clear HashTable.

public clear( ) : void

count()

Count.

public count( ) : int
Return values
int

getIndexForHashCode()

Get index for hash code.

public getIndexForHashCode( $pHashCode : string ) : int
Parameters
$pHashCode : string
Return values
int

Index

toArray()

HashTable to array.

public toArray( ) : \PhpOffice\PhpSpreadsheet\IComparable[]
Return values
\PhpOffice\PhpSpreadsheet\IComparable[]

__clone()

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

public __clone( ) : mixed
Return values
mixed

Search results