for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WellCommerce\Bundle\ShipmentBundle\Processor;
use WellCommerce\Bundle\ShipmentBundle\Adapter\ShipmentAdapterInterface;
use WellCommerce\Component\Collections\ArrayCollection;
/**
* Class ShipmentAdapterCollection
*
* @author Adam Piotrowski <[email protected]>
*/
class ShipmentAdapterCollection extends ArrayCollection
{
public function add(ShipmentAdapterInterface $adapter)
$this->items[$adapter->getAlias()] = $adapter;
}
public function get($key): ShipmentAdapterInterface
return $this->items[$key];