Ejemplo n.º 1
0
 /**
  * @param float $value
  * @return $this
  */
 public function setValue($value)
 {
     if (!is_float($value)) {
         throw InvalidArgumentException::floatRequired();
     }
     $this->value = $value;
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  * @see   ArrayAccess:offsetUnset
  * @param mixed $offset
  */
 public function offsetUnset($offset)
 {
     if (!$offset instanceof ConfigInterface) {
         throw InvalidArgumentException::configRequired();
     }
     $this->__unset($offset);
 }