CustomerMemoCollection

Extends \AbstractCollection

Class CustomerMemoCollection

category

System

package

Customer

subpackage

Validation

Methods

Initialize the collection instance.

__construct(array|mixed|null $argumentsArray = null) 
inherited
Throws
\InvalidArgumentException

Arguments

$argumentsArray

array|mixed|null

Get collection item count.

count() : integer
inherited

Response

integer

Get the collection as an array.

getArray() : array
inherited

Response

array

Get specific collection item by index.

getItem( $p_index) : mixed
inherited
Throws
\InvalidArgumentException

if index is not numeric | OutOfBoundsException if index is out of bounds

Arguments

$p_index

Response

mixed

getIterator

getIterator() 
inherited

Returns a serialized array of the customers collection.

getSerializedArray() : array

The structure is: $memosArray = [ [ 'customerId' => $customerId, 'memoTitle' => $memoTitle, 'memoText' => $memoText, 'memoDate' => $memoDate', 'posterId' => $posterId ], |…|…| ]

Response

array

Array with the structure above.

Determine whether the collection is empty or not.

isEmpty() : boolean
inherited

Response

boolean

Properties