for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OldSound\RabbitMqBundle\RabbitMq;
class AmqpPartsHolder
{
protected $parts;
public function __construct()
$this->parts = array();
}
public function addPart($type, BaseAmqp $part)
$this->parts[$type][] = $part;
public function getParts($type)
$type = (string) $type;
return isset($this->parts[$type]) ? $this->parts[$type] : array();