src/DataObject.php
public function saveAvailableBlock($blockUniqueKey, $renderedBlockContent)
    {
        if (isset($this->availableBlocks[$blockUniqueKey]) && !empty($this->availableBlocks[$blockUniqueKey])) {
            throw new DataObjectBlockAlreadyExists();
        }

        $this->availableBlocks[$blockUniqueKey] = $renderedBlockContent;

        return $this;
    }
public function saveAvailableBlock($blockUniqueKey, $renderedBlockContent)
    {
        if (isset($this->availableBlocks[$blockUniqueKey]) && !empty($this->availableBlocks[$blockUniqueKey])) {
            throw new DataObjectBlockAlreadyExists();
        }

        $this->availableBlocks[$blockUniqueKey] = $renderedBlockContent;

        return $this;
    }
@param string $blockUniqueKey
@param string $renderedBlockContent

@throws DataObjectBlockAlreadyExists

@return $this