Automattic\WooCommerce\Blueprint
ClassExtractor::__construct
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() ClassExtractor:: construct code WC 10.7.0
public function __construct( string $file_path ) {
if ( ! file_exists( $file_path ) ) {
throw new \InvalidArgumentException( "File not found: $file_path" );
}
$this->file_path = $file_path;
}