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