libs/Parser/Node/ControlNode.php
public function close( Line$closerLine ):string
	{
		if( isset($this->config['close_by']) && $closerLine->indentLevel==$this->line->indentLevel ){
			foreach( $this->config['close_by'] as $key=>$value ){
				if( $closerLine->pregMatch($key) ){
					return $this->withParam($value);
				}
			}
		}

		if( isset($this->config['closer']) )
			{ return $this->withParam($this->config['closer']); }

		return '';
	}
public function close( Line$closerLine ):string
	{
		if( isset($this->config['close_by']) && $closerLine->indentLevel==$this->line->indentLevel ){
			foreach( $this->config['close_by'] as $key=>$value ){
				if( $closerLine->pregMatch($key) ){
					return $this->withParam($value);
				}
			}
		}

		if( isset($this->config['closer']) )
			{ return $this->withParam($this->config['closer']); }

		return '';
	}
public function close ( Line $ closerLine ) : string { if ( isset ( $ this -> config [ 'close_by' ] ) && $ closerLine -> indentLevel == $ this -> line -> indentLevel ) { foreach ( $ this -> config [ 'close_by' ] as $ key => $ value ) { if ( $ closerLine -> pregMatch ( $ key ) ) { return $ this -> withParam ( $ value ) ; } } } if ( isset ( $ this -> config [ 'closer' ] ) ) { return $ this -> withParam ( $ this -> config [ 'closer' ] ) ; } return '' ; }
Close this control node, and returning node closer.

@access public

@param  \Htsl\ReadingBuffer\Line   $closerLine  The line when node closed.

@return string
Close this control node and returning node closer .