for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-DependencyInjection package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\DependencyInjection\ParameterBag;
use Borobudur\DependencyInjection\Exception\ImmutableParameterException;
use Borobudur\DependencyInjection\ParameterBag;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/8/15
class ImmutableParameterBag extends ParameterBag
{
* Constructor.
* @param array $parameters
public function __construct(array $parameters = array())
$this->parameters = $parameters;
parent::__construct(array(), new Resolver($this, true));
}
* {@inheritdoc}
public function replace(array $parameters)
throw new ImmutableParameterException('replace');
public function add(array $parameters)
throw new ImmutableParameterException('add');
public function set($name, $value)
throw new ImmutableParameterException('set');
public function remove($name)
throw new ImmutableParameterException('remove');
public function clear()
throw new ImmutableParameterException('clear');