Primo Committ
This commit is contained in:
35
vendor/codexshaper/laravel-woocommerce/src/Query.php
vendored
Normal file
35
vendor/codexshaper/laravel-woocommerce/src/Query.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Codexshaper\WooCommerce;
|
||||
|
||||
use Codexshaper\WooCommerce\Models\BaseMOdel;
|
||||
use Codexshaper\WooCommerce\Traits\QueryBuilderTrait;
|
||||
|
||||
class Query extends BaseMOdel
|
||||
{
|
||||
use QueryBuilderTrait;
|
||||
|
||||
protected $endpoint;
|
||||
protected static $instance = null;
|
||||
|
||||
public function __construct($endpoint = '')
|
||||
{
|
||||
$this->endpoint = $endpoint;
|
||||
}
|
||||
|
||||
public function setEndpoint($endpoint)
|
||||
{
|
||||
$this->endpoint = $endpoint;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function init()
|
||||
{
|
||||
if (!static::$instance) {
|
||||
static::$instance = new static();
|
||||
}
|
||||
|
||||
return static::$instance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user