for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sinergi\Config\Path;
use Exception;
use Sinergi\Config\ArrayCollection;
/**
* @method Path get($key)
*/
class PathCollection extends ArrayCollection
{
* @param string|Path $path
* @return bool
* @throws Exception
public function add($path)
if (!$path instanceof Path) {
$path = new Path($path);
}
$this->container[] = $path;
return true;