HumHub Documentation (unofficial)

SplStack extends SplStack
in package
implements Serializable

Serializable version of SplStack

Tags
template

TValue

extends

\SplStack<TValue>

Table of Contents

Interfaces

Serializable

Methods

__serialize()  : array<int, TValue>
Magic method used for serializing of an instance.
__unserialize()  : void
Magic method used to rebuild an instance.
serialize()  : string
Serialize
toArray()  : array<int, TValue>
Serialize to an array representing the stack
unserialize()  : void
Unserialize

Methods

__serialize()

Magic method used for serializing of an instance.

public __serialize() : array<int, TValue>
Attributes
#[ReturnTypeWillChange]
Return values
array<int, TValue>

__unserialize()

Magic method used to rebuild an instance.

public __unserialize(array<string|int, TValue$data) : void
Parameters
$data : array<string|int, TValue>

Data array.

Attributes
#[ReturnTypeWillChange]

toArray()

Serialize to an array representing the stack

public toArray() : array<int, TValue>
Return values
array<int, TValue>

        
On this page

Search results