fair-plugin/inc/packages/did/class-web.php
Ryan McCue 9ce4b13d15
Add installer for FAIR protocol (#71)
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>
2025-07-27 09:37:50 -07:00

56 lines
733 B
PHP

<?php
/**
* Get PLC Web document.
*
* @package FAIR
*/
namespace FAIR\Packages\DID;
/**
* Class Web.
*/
class Web implements DID {
const METHOD = 'web';
/**
* Decentralized ID.
*
* @var string
*/
protected string $id;
/**
* Constructor.
*
* @param string $id DID.
*/
public function __construct( string $id ) {
$this->id = $id;
}
/**
* Get the DID type.
*
* One of plc, web.
*/
public function get_method() : string {
return static::METHOD;
}
/**
* Get the full decentralized ID (DID).
*/
public function get_id() : string {
return $this->id;
}
/**
* Fetch PLC Web document.
*
* @return void|null
*/
public function fetch_document() {
return null; // todo.
}
}