protected function parse($comment)
	{
		$this->description = '';
		$this->tags = [];
	
		$comment = preg_replace("'^\s*/*\**'m", '', substr($comment, 0, -2));
		$parts = preg_split("'^\s*@([a-zA-Z][a-zA-Z0-9]*)'m", $comment, -1, PREG_SPLIT_DELIM_CAPTURE);
	
		$this->description = preg_replace("'^\h+'m", '', trim($parts[0]));
	
		for($i = 1, $count = count($parts) - 1; $i < $count; $i += 2)
		{
			$this->tags[$parts[$i]][] = trim($parts[$i + 1]);
		}
	
		return $this;
	}
protected function parse($comment)
	{
		$this->description = '';
		$this->tags = [];
	
		$comment = preg_replace("'^\s*/*\**'m", '', substr($comment, 0, -2));
		$parts = preg_split("'^\s*@([a-zA-Z][a-zA-Z0-9]*)'m", $comment, -1, PREG_SPLIT_DELIM_CAPTURE);
	
		$this->description = preg_replace("'^\h+'m", '', trim($parts[0]));
	
		for($i = 1, $count = count($parts) - 1; $i < $count; $i += 2)
		{
			$this->tags[$parts[$i]][] = trim($parts[$i + 1]);
		}
	
		return $this;
	}
protected function parse ( $ comment ) { $ this -> description = '' ; $ this -> tags = [ ] ; $ comment = preg_replace ( "'^\s*/*\**'m" , '' , substr ( $ comment , 0 , - 2 ) ) ; $ parts = preg_split ( "'^\s*@([a-zA-Z][a-zA-Z0-9]*)'m" , $ comment , - 1 , PREG_SPLIT_DELIM_CAPTURE ) ; $ this -> description = preg_replace ( "'^\h+'m" , '' , trim ( $ parts [ 0 ] ) ) ; for ( $ i = 1 , $ count = count ( $ parts ) - 1 ; $ i < $ count ; $ i += 2 ) { $ this -> tags [ $ parts [ $ i ] ] [ ] = trim ( $ parts [ $ i + 1 ] ) ; } return $ this ; }
Parse the given doc comment and populate description and tags.

@param string $comment
Parse the given doc comment and populate description and tags .