Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/job-board.corals.io/Corals/modules/Woo/Integration/WooCommerce/Traits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/job-board.corals.io/Corals/modules/Woo/Integration/WooCommerce/Traits/ReportTrait.php
<?php


namespace Corals\Modules\Woo\Integration\WooCommerce\Traits;


trait ReportTrait
{
    /**
     * Retrieve all sales.
     *
     * @param array $options
     *
     * @return array
     */
    protected function sales($options = [])
    {
        $this->endpoint = 'reports/sales';

        return self::all($options);
    }

    /**
     * Retrieve all top sellers.
     *
     * @param array $options
     *
     * @return array
     */
    protected function topSellers($options = [])
    {
        $this->endpoint = 'reports/top_sellers';

        return self::all($options);
    }

    /**
     * Retrieve all coupons.
     *
     * @param array $options
     *
     * @return array
     */
    protected function coupons($options = [])
    {
        $this->endpoint = 'reports/coupons/totals';

        return self::all($options);
    }

    /**
     * Retrieve all customers.
     *
     * @param array $options
     *
     * @return array
     */
    protected function customers($options = [])
    {
        $this->endpoint = 'reports/customers/totals';

        return self::all($options);
    }

    /**
     * Retrieve all orders.
     *
     * @param array $options
     *
     * @return array
     */
    protected function orders($options = [])
    {
        $this->endpoint = 'reports/orders/totals';

        return self::all($options);
    }

    /**
     * Retrieve all products.
     *
     * @param array $options
     *
     * @return array
     */
    protected function products($options = [])
    {
        $this->endpoint = 'reports/products/totals';

        return self::all($options);
    }

    /**
     * Retrieve all reviews.
     *
     * @param array $options
     *
     * @return array
     */
    protected function reviews($options = [])
    {
        $this->endpoint = 'reports/reviews/totals';

        return self::all($options);
    }
}

Spamworldpro Mini