Automattic\WooCommerce\Blueprint

ClassExtractor::__constructpublicWC 1.0

Constructor.

Method of the class: ClassExtractor{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ClassExtractor = new ClassExtractor();
$ClassExtractor->__construct( $file_path );
$file_path(string) (required)
Path to the PHP file to process.

ClassExtractor::__construct() code WC 9.9.5

public function __construct( string $file_path ) {
	if ( ! file_exists( $file_path ) ) {
		throw new \InvalidArgumentException( "File not found: $file_path" );
	}
	$this->file_path = $file_path;
}