WP_CLI
DocParser::__construct
Method of the class: DocParser{}
No Hooks.
Returns
null. Nothing (null).
Usage
$DocParser = new DocParser(); $DocParser->__construct( $doc_comment );
- $doc_comment(string) (required)
- .
DocParser::__construct() DocParser:: construct code WP-CLI 2.13.0-alpha
public function __construct( $doc_comment ) {
/* Make sure we have a known line ending in document */
$doc_comment = str_replace( "\r\n", "\n", $doc_comment );
$this->doc_comment = self::remove_decorations( $doc_comment );
}