| 1 |
<?php |
| 2 |
namespace Elementor\App\Modules\KitLibrary\Data\CloudKits\Endpoints; |
| 3 |
|
| 4 |
use Elementor\App\Modules\KitLibrary\Data\CloudKits\Controller; |
| 5 |
use Elementor\App\Modules\KitLibrary\Module as KitLibrary; |
| 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 Eligibility extends Endpoint { |
| 16 |
public function get_name() { |
| 17 |
return 'eligibility'; |
| 18 |
} |
| 19 |
|
| 20 |
public function get_format() { |
| 21 |
return 'cloud-kits/eligibility'; |
| 22 |
} |
| 23 |
|
| 24 |
public function get_items( $request ) { |
| 25 |
return KitLibrary::get_cloud_app()->is_eligible(); |
| 26 |
} |
| 27 |
} |
| 28 |
|