Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableQuery::__get()publicWC 1.0

Make some private available for backwards compatibility.

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

No Hooks.

Return

Mixed.

Usage

$OrdersTableQuery = new OrdersTableQuery();
$OrdersTableQuery->__get( $name );
$name(string) (required)
Property to get.

Code of OrdersTableQuery::__get() WC 7.1.0

public function __get( string $name ) {
	switch ( $name ) {
		case 'found_orders':
		case 'found_posts':
			return $this->found_orders;
		case 'max_num_pages':
			return $this->max_num_pages;
		case 'posts':
		case 'orders':
			return $this->results;
		case 'request':
			return $this->sql;
		default:
			break;
	}
}