????
| Current Path : /home/arabianr/public_html/wp-content/plugins/simplybook/app/Interfaces/ |
| Current File : /home/arabianr/public_html/wp-content/plugins/simplybook/app/Interfaces/SingleEndpointInterface.php |
<?php
namespace SimplyBook\Interfaces;
interface SingleEndpointInterface
{
/**
* The route name to register. Will be used as the array key for routes
* array in: {@see EndpointManager::registerWordPressRestRoutes}
*/
public function registerRoute(): string;
/**
* Arguments you can use are documented wih filter: simplybook_rest_routes
* in method: {@see EndpointManager::getPluginRoutes}
*/
public function registerArguments(): array;
/**
* This method should return true if the endpoint is enabled, false
* otherwise. Endpoint will not be registered if this method returns false:
* {@see EndpointManager::registerEndpoints}
*/
public function enabled(): bool;
}