| 1 |
<?php |
| 2 |
namespace Elementor\Modules\CloudKitLibrary\Data\Endpoints; |
| 3 |
|
| 4 |
use Elementor\Modules\CloudKitLibrary\Data\Controller; |
| 5 |
use Elementor\Modules\CloudKitLibrary\Module as CloudKitLibrary; |
| 6 |
use Elementor\Data\V2\Base\Endpoint; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* @property Controller $controller |
| 14 |
*/ |
| 15 |
class Quota extends Endpoint { |
| 16 |
public function get_name() { |
| 17 |
return 'quota'; |
| 18 |
} |
| 19 |
|
| 20 |
public function get_format() { |
| 21 |
return 'cloud-kits/quota'; |
| 22 |
} |
| 23 |
|
| 24 |
public function get_items( $request ) { |
| 25 |
return CloudKitLibrary::get_app()->get_quota(); |
| 26 |
} |
| 27 |
} |
| 28 |
|