for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Codexshaper\WooCommerce\PHP\Models;
use Codexshaper\WooCommerce\PHP\Traits\QueryBuilderTrait;
class Report extends BaseModel
{
use QueryBuilderTrait;
protected $endpoint = 'reports';
/**
* Retrieve all sales.
*
* @param array $options
* @return array
*/
protected function sales($options = [])
$this->endpoint = 'reports/sales';
return self::all($options);
}
* Retrieve all top sellers.
protected function topSellers($options = [])
$this->endpoint = 'reports/top_sellers';
* Retrieve all coupons.
protected function coupons($options = [])
$this->endpoint = 'reports/coupons/totals';
* Retrieve all customers.
protected function customers($options = [])
$this->endpoint = 'reports/customers/totals';
* Retrieve all orders.
protected function orders($options = [])
$this->endpoint = 'reports/orders/totals';
* Retrieve all products.
protected function products($options = [])
$this->endpoint = 'reports/products/totals';
* Retrieve all reviews.
protected function reviews($options = [])
$this->endpoint = 'reports/reviews/totals';