ParcelServiceCollection

Implements \Countable, \IteratorAggregate

Class ParcelServiceCollection

package

Default

Methods

ParcelServiceCollection constructor.

__construct(array $parcelServices) 

Arguments

$parcelServices

array

Adds a parcel service to the collection.

add(\ParcelServiceInterface $parcelService) 

Arguments

$parcelService

\ParcelServiceInterface

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

parcelServices

parcelServices : array
var

Type(s)

array