| 1 |
<?php |
| 2 |
|
| 3 |
namespace StoreEngine\Classes; |
| 4 |
|
| 5 |
/** |
| 6 |
* @method array<Price> get_results() |
| 7 |
* @method Price next_result() |
| 8 |
*/ |
| 9 |
class PriceCollection extends AbstractCollection { |
| 10 |
protected string $table = 'storeengine_product_price'; |
| 11 |
|
| 12 |
protected string $object_type = 'price'; |
| 13 |
|
| 14 |
protected string $primary_key = 'id'; |
| 15 |
protected string $parent_key = 'product_id'; |
| 16 |
|
| 17 |
protected string $orderBy = 'order'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase |
| 18 |
|
| 19 |
protected string $order = 'ASC'; |
| 20 |
protected string $returnType = Price::class; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase |
| 21 |
} |
| 22 |
|