ParcelServiceDescriptionCollection

Implements \Countable, \IteratorAggregate

Class ParcelServiceDescriptionCollection

package

Default

Methods

ParcelServiceDescriptionCollection constructor.

__construct(array $parcelServiceDescriptions) 

Arguments

$parcelServiceDescriptions

array

Adds a parcel service description to the collection.

add(\ParcelServiceDescriptionInterface $parcelServiceDescription) 

Arguments

$parcelServiceDescription

\ParcelServiceDescriptionInterface

Returns a ParcelServiceDescriptionCollection containing given parcel service descriptions.

collect(array $parcelServiceDescriptions) : boolean|\ParcelServiceDescriptionCollection
static

Arguments

$parcelServiceDescriptions

array

Response

boolean|\ParcelServiceDescriptionCollection

Returns the count of parcel service descriptions in the collection.

count() : integer

Response

integer

Returns the collection as an array.

getArray() : array

Response

array

getIterator

getIterator() : \ArrayIterator|\Traversable

Response

\ArrayIterator|\Traversable

Properties

parcelServiceDescriptions

parcelServiceDescriptions : array
var

Type(s)

array