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>
56 lines
733 B
PHP
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.
|
|
}
|
|
}
|