clear() публичный Метод

Clears all parameters.
public clear ( )
Пример #1
0
 /**
  * @covers Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::clear
  */
 public function testClear()
 {
     $bag = new ParameterBag($parameters = array(
         'foo' => 'foo',
         'bar' => 'bar',
     ));
     $bag->clear();
     $this->assertEquals(array(), $bag->all(), '->clear() removes all parameters');
 }
Пример #2
0
 /**
  * @param array $parameters
  *
  * @return $this
  */
 public function setParameters($parameters)
 {
     $this->parameters->clear();
     $this->parameters->add($parameters);
     return $this;
 }
Пример #3
0
 /**
  * Clear all parameter.
  */
 public function clear()
 {
     $this->parameters->clear();
 }