\CryptoManana\DataStructuresSignedData

Class SignedData - The plain data with included digital signature.

Summary

Methods
Properties
Constants
__construct()
__destruct()
__toString()
__get()
__set()
__isset()
__unset()
$data
$signature
No constants found
No protected methods found
$data
$signature
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : string

The plain message information.

Type

string

$signature

$signature : string

The message's signature information.

Type

string

$data

$data : string

The plain message property storage.

Type

string — The plain message information.

$signature

$signature : string

The message's signature information property storage.

Type

string — The message's digital signature information.

Methods

__construct()

__construct(string  $plainData = '', string  $signatureData = '') 

Signed data constructor.

Parameters

string $plainData

The plain message.

string $signatureData

The message's signature.

Throws

\Exception

Validation errors.

__destruct()

__destruct() 

Signed data destructor

__toString()

__toString() : string

The signed data string representation.

Returns

string

__get()

__get(mixed  $name) : mixed

Magic method invoked when attempting to get the value of an inaccessible or a non-existent property.

Parameters

mixed $name

The property name.

Returns

mixed —

The property value.

__set()

__set(mixed  $name, mixed  $value) 

Magic method invoked when attempting to create or modify of an inaccessible or a non-existent property.

Parameters

mixed $name

The property name.

mixed $value

The property value.

Throws

\Exception|\InvalidArgumentException

The property does not exist or is from another type.

__isset()

__isset(mixed  $name) : boolean

Magic method invoked when checking of an inaccessible or a non-existent property is set.

Parameters

mixed $name

The property name.

Returns

boolean —

The existence check result.

__unset()

__unset(mixed  $name) 

Magic method invoked when attempting to unset an inaccessible or a non-existent property.

Parameters

mixed $name

The property name.

Throws

\Exception|\LogicException

The object does not allow dynamic property removal.