WP_CLI

SynopsisValidator::__construct()publicWP-CLI 1.0

Method of the class: SynopsisValidator{}

No Hooks.

Return

null. Nothing.

Usage

$SynopsisValidator = new SynopsisValidator();
$SynopsisValidator->__construct( $synopsis );
$synopsis(string) (required)
Command's synopsis.

SynopsisValidator::__construct() code WP-CLI 2.8.0-alpha

public function __construct( $synopsis ) {
	$this->spec = SynopsisParser::parse( $synopsis );
}