protected function parseTag($line) {
		$matches = [];
		if (!preg_match('/^@(' . self::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)?/us', $line, $matches)) {
			throw new \InvalidArgumentException('Invalid tag line detected: ' . $line);
		}
		
		$tagName = $matches[1];
		$content = isset($matches[2]) ? $matches[2] : '';
		
		return TagFactory::create($tagName, $content);
	}
protected function parseTag($line) {
		$matches = [];
		if (!preg_match('/^@(' . self::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)?/us', $line, $matches)) {
			throw new \InvalidArgumentException('Invalid tag line detected: ' . $line);
		}
		
		$tagName = $matches[1];
		$content = isset($matches[2]) ? $matches[2] : '';
		
		return TagFactory::create($tagName, $content);
	}
protected function parseTag ( $ line ) { $ matches = [ ] ; if ( ! preg_match ( '/^@(' . self :: REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)?/us' , $ line , $ matches ) ) { throw new \ InvalidArgumentException ( 'Invalid tag line detected: ' . $ line ) ; } $ tagName = $ matches [ 1 ] ; $ content = isset ( $ matches [ 2 ] ) ? $ matches [ 2 ] : '' ; return TagFactory :: create ( $ tagName , $ content ) ; }
Parses an individual tag line

@param string $line
@throws \InvalidArgumentException
@return \gossi\docblock\tags\AbstractTag
Parses an individual tag line