Heap::__construct

(Available since version 1.0)

Heap::__constructConstructs a new heap

Description

abstract public Heap::__construct ([ array $array ] )

This constructs a new heap. If no argument is supplied the heap will be empty.

Parameters

array

An array of value to initialise the heap with.

Return Values

No value is returned.

Errors/Exceptions

Throws SEIDS::Heaps::ConstructorException when array is not an array.

To Top