/** * sets a literal offset value. * * @param string $offset name of the offset to set * @param mixed $value the value to set * @throws ModelableException if offset does not exist */ protected function _literalOffsetSet(string $offset, $value) { if (!$this->_literalOffsetValid($offset, $value)) { $context = ['tr' => ['offset' => $offset, 'dump' => Vars::dump($value)]]; throw new ModelableException(ModelableException::INVALID_VALUE, $context); } $this->_prop[$offset] = $value; }