for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace UniMan\Core\Driver;
class DriverStorage
{
private $drivers = [];
public function add(DriverInterface $driver)
$this->drivers[$driver->type()] = $driver;
return $this;
}
/**
* @return DriverInterface[]
*/
public function getDrivers()
return $this->drivers;
public function getDriver($driver)
return isset($this->drivers[$driver]) ? $this->drivers[$driver] : null;