Пример #1
0
 /**
  * {@inheritdoc}
  * @return mixed
  */
 public function getValue()
 {
     if ($this->limit == 1) {
         return current($this->value);
     }
     return parent::getValue();
 }
Пример #2
0
 /**
  * {@inheritDoc}
  * @return float
  */
 public function getValue()
 {
     return floatval(parent::getValue());
 }