ParcelServiceDescriptionCollection
in package
implements
Countable, IteratorAggregate
Class ParcelServiceDescriptionCollection
Interfaces, Classes and Traits
- Countable
- IteratorAggregate
Table of Contents
- $parcelServiceDescriptions : array<string|int, mixed>
- __construct() : mixed
- ParcelServiceDescriptionCollection constructor.
- collect() : bool|ParcelServiceDescriptionCollection
- Returns a ParcelServiceDescriptionCollection containing given parcel service descriptions.
- count() : int
- Returns the count of parcel service descriptions in the collection.
- getArray() : array<string|int, mixed>
- Returns the collection as an array.
- getIterator() : ArrayIterator|Traversable
- add() : mixed
- Adds a parcel service description to the collection.
Properties
$parcelServiceDescriptions
private
array<string|int, mixed>
$parcelServiceDescriptions
= []
Methods
__construct()
ParcelServiceDescriptionCollection constructor.
public
__construct(array<string|int, mixed> $parcelServiceDescriptions) : mixed
Parameters
- $parcelServiceDescriptions : array<string|int, mixed>
Return values
mixed —collect()
Returns a ParcelServiceDescriptionCollection containing given parcel service descriptions.
public
static collect(array<string|int, mixed> $parcelServiceDescriptions) : bool|ParcelServiceDescriptionCollection
Parameters
- $parcelServiceDescriptions : array<string|int, mixed>
Return values
bool|ParcelServiceDescriptionCollection —count()
Returns the count of parcel service descriptions in the collection.
public
count() : int
Return values
int —getArray()
Returns the collection as an array.
public
getArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —getIterator()
public
getIterator() : ArrayIterator|Traversable
Return values
ArrayIterator|Traversable —add()
Adds a parcel service description to the collection.
protected
add(ParcelServiceDescriptionInterface $parcelServiceDescription) : mixed
Parameters
- $parcelServiceDescription : ParcelServiceDescriptionInterface