for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Deployee\Plugins\Deploy\Dispatcher;
class DispatcherCollection
{
/**
* @var array
*/
private $dispatcher;
* DispatcherCollection constructor.
public function __construct()
$this->dispatcher = [];
}
* @param TaskDefinitionDispatcherInterface[] $collection
public function addDispatcherArray(array $collection)
foreach($collection as $dispatcher){
$this->addDispatcher($dispatcher);
* @param TaskDefinitionDispatcherInterface $dispatcher
public function addDispatcher(TaskDefinitionDispatcherInterface $dispatcher)
$this->dispatcher[] = $dispatcher;
* @return TaskDefinitionDispatcherInterface[]
public function toArray(): array
return $this->dispatcher;