ParcelServiceCollection

Implements \Countable, \IteratorAggregate

Class ParcelServiceCollection

package

Default

Methods

ParcelServiceCollection constructor.

__construct(array $parcelServices) 

Arguments

$parcelServices

array

Returns a ParcelServiceCollection containing given parcel services.

collect(array $parcelServices) : \ParcelServiceCollection
static

Arguments

$parcelServices

array

Response

\ParcelServiceCollection

Returns the count of parcel services 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