Beispiel #1
0
 /**
  * Compatibility helper method, will be removed in 0.7.
  *
  * @deprecated since 0.5, removal in 0.7
  *
  * @return Parameter
  */
 public function toParameter()
 {
     $parameter = $this->definition->toParameter();
     $parameter->setValue($this->getValue());
     $parameter->originalName = $this->setCount === 0 ? $this->getName() : $this->getOriginalName();
     $parameter->setWasSetToDefault($this->wasSetToDefault());
     return $parameter;
 }