mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 08:39:02 +08:00
Signed-off-by: Ryan McCue <me@ryanmccue.info> Signed-off-by: Andy Fragen <andy@thefragens.com> Signed-off-by: costdev <79332690+costdev@users.noreply.github.com> Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Signed-off-by: Joe Dolson <design@joedolson.com> Co-authored-by: Andy Fragen <andy@thefragens.com> Co-authored-by: costdev <79332690+costdev@users.noreply.github.com> Co-authored-by: Joe Dolson <design@joedolson.com>
32 lines
506 B
PHP
32 lines
506 B
PHP
<?php
|
|
/**
|
|
* DID Interface.
|
|
*
|
|
* @package FAIR
|
|
*/
|
|
|
|
namespace FAIR\Packages\DID;
|
|
|
|
interface DID {
|
|
/**
|
|
* Get the DID method.
|
|
*
|
|
* One of plc, web.
|
|
*/
|
|
public function get_method() : string;
|
|
|
|
/**
|
|
* Get the full decentralized ID (DID).
|
|
*/
|
|
public function get_id() : string;
|
|
|
|
/**
|
|
* Fetch the DID document.
|
|
*
|
|
* For most DIDs, this will be a remote request, so higher levels should
|
|
* cache this as appropriate.
|
|
*
|
|
* @return Document|\WP_Error
|
|
*/
|
|
public function fetch_document();
|
|
}
|