EUVATChecker
3 years ago
Calculator.php
3 years ago
CouponService.php
3 years ago
CustomerService.php
3 years ago
OrderService.php
4 months ago
SubscriptionService.php
4 months ago
TaxService.php
3 years ago
index.php
3 years ago
CustomerService.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Membership\Services; |
| 4 | |
| 5 | use ProfilePress\Core\Membership\Repositories\CustomerRepository; |
| 6 | |
| 7 | class CustomerService |
| 8 | { |
| 9 | /** |
| 10 | * @param $customer_id |
| 11 | * |
| 12 | * @return false|int |
| 13 | */ |
| 14 | public function delete_customer($customer_id) |
| 15 | { |
| 16 | return CustomerRepository::init()->delete($customer_id); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * @return self |
| 21 | */ |
| 22 | public static function init() |
| 23 | { |
| 24 | static $instance = null; |
| 25 | |
| 26 | if (is_null($instance)) { |
| 27 | $instance = new self(); |
| 28 | } |
| 29 | |
| 30 | return $instance; |
| 31 | } |
| 32 | } |