src/Isolator.php
public function setBlock(string $blockID, string $source): Isolator
    {
        if (!isset($this->phpBlocks[$blockID])) {
            throw new IsolatorException("Undefined block {$blockID}");
        }

        $this->phpBlocks[$blockID] = $source;

        return $this;
    }
public function setBlock(string $blockID, string $source): Isolator
    {
        if (!isset($this->phpBlocks[$blockID])) {
            throw new IsolatorException("Undefined block {$blockID}");
        }

        $this->phpBlocks[$blockID] = $source;

        return $this;
    }
public function setBlock ( string $ blockID , string $ source ) : Isolator { if ( ! isset ( $ this -> phpBlocks [ $ blockID ] ) ) { throw new IsolatorException ( "Undefined block {$blockID}" ) ; } $ this -> phpBlocks [ $ blockID ] = $ source ; return $ this ; }
Set block content by id.

@param string $blockID
@param string $source

@return self

@throws IsolatorException
Set block content by id .