for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MrPrompt\ShipmentCommon\Base;
use SplFixedArray;
/**
* Parcels
*
* @author Thiago Paes <[email protected]>
*/
class Parcels extends SplFixedArray
{
* Constructor
* @param int $quantity
public function __construct($quantity = 1)
parent::__construct($quantity);
}
* @param Parcel $parcel
public function addParcel(Parcel $parcel)
$this->offsetSet($this->key(), $parcel);
$this->next();