src/Database/ORM/DocParser.php
/**
	 * Parses the doc block comment for the given class.
	 *
	 * @param string $className
	 * @return void
	 */
Parses the doc block comment for the given class.
@param string $className
@return void
Parses the doc block comment for the given class . @param string $className @return void
private function parseDocComment($className) {
		$reflection = new ReflectionClass($className);
		$doc = $reflection->getDocComment();
		$doc = preg_replace("/^[ \t]*\*[ \t]*/m", "", $doc);
		$docLines = preg_split("/\r?\n/", $doc);
		unset($docLines[0]);
		unset($docLines[count($docLines)]);
		$this->parseProperties($docLines);
	}
private function parseDocComment ( $ className ) { $ reflection = new ReflectionClass ( $ className ) ; $ doc = $ reflection -> getDocComment ( ) ; $ doc = preg_replace ( " /^[  \t ]*\*[  \t ]*/m " , " " , $ doc ) ; $ docLines = preg_split ( " / \r ? \n / " , $ doc ) ; unset ( $ docLines [ 0 ] ) ; unset ( $ docLines [ count ( $ docLines ) ] ) ; $ this -> parseProperties ( $ docLines ) ; }
Parses the doc block comment for the given class.
Parses the doc block comment for the given class .