Пример #1
0
 /**
  * Replaces a parameter in snippet
  *
  * @param ModSync\Element\Parameter\ParameterAbstract $param
  */
 public final function replaceParam(ModSync\Element\Parameter\ParameterAbstract $param)
 {
     if (!array_key_exists($param->getName(), $this->_params)) {
         throw new ModSync\Element\Parameter\Exception($this, 'Parameter (' . $param->getName() . ') cannot be replaced');
     }
     unset($this->_params[$param->getName()]);
     $this->_params[$param->getName()] = $param;
 }
Пример #2
0
 public function getValue()
 {
     return (string) parent::getValue();
 }
Пример #3
0
 public function getValue()
 {
     return intval(parent::getValue());
 }