Anchor
Represents information about an anchor.
- Full name:
\Bloock\Entity\Integrity\Anchor
Properties
id
private int $id
blockRoots
private \Google\Protobuf\Internal\RepeatedField $blockRoots
networks
private \Google\Protobuf\Internal\RepeatedField $networks
root
private string $root
status
private string $status
Methods
__construct
Constructs an Anchor object with the specified parameters.
public __construct(int $id, \Google\Protobuf\Internal\RepeatedField $blockRoots, \Google\Protobuf\Internal\RepeatedField $networks, string $root, string $status): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$id | int | |
$blockRoots | \Google\Protobuf\Internal\RepeatedField | |
$networks | \Google\Protobuf\Internal\RepeatedField | |
$root | string | |
$status | string |
fromProto
public static fromProto(\Bloock\Anchor $anchor): \Bloock\Entity\Integrity\Anchor
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$anchor | \Bloock\Anchor |
getId
Gets id from the anchor.
public getId(): int
getBlockRoots
Gets block roots from the anchor.
public getBlockRoots(): \Google\Protobuf\Internal\RepeatedField
getNetworks
Gets networks from the anchor.
public getNetworks(): \Google\Protobuf\Internal\RepeatedField
getRoot
Gets root from the anchor.
public getRoot(): string
getStatus
Get status from the anchor.
public getStatus(): string
toProto
public toProto(): \Bloock\Anchor
Automatically generated on 2024-04-02