public function endBlock(string $name): string
    {
        unset($this->blockStatus[$name]);

        return $this->blocks[$name] = ob_get_clean();
    }
public function endBlock(string $name): string
    {
        unset($this->blockStatus[$name]);

        return $this->blocks[$name] = ob_get_clean();
    }
public function endBlock ( string $ name ) : string { unset ( $ this -> blockStatus [ $ name ] ) ; return $ this -> blocks [ $ name ] = ob_get_clean ( ) ; }
End a block.

@param string $name The block's name

@return string
End a block .