protected function write($key, $value) { throw new \RuntimeException(sprintf("A scalar value can't be a datasource (" . 'key: %s, type: %s, value: %s | ' . 'parentType: %s, parentValue: %s ', $key, get_type_class($value), $value, get_type_class($this->getDelegatedStorage()), $this->getDelegatedStorage())); }
protected function throwIfCreateChildIsNull($key, $node, $path) { if (is_null($node)) { throw new \LogicException(sprintf('createChild returned NULL (parent: %s, key: %s, path: %s)', get_type_class($this->getDelegatedStorage()), $key, $path)); } }