Automattic\WooCommerce\Blueprint

ClassExtractor::__constructpublicWC 1.0

Constructor.

Метод класса: ClassExtractor{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ClassExtractor = new ClassExtractor();
$ClassExtractor->__construct( $file_path );
$file_path(строка) (обязательный)
Path to the PHP file to process.

Код ClassExtractor::__construct() WC 10.0.2

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