Constants

SIGNATURE_USAGE_TYPE

SIGNATURE_USAGE_TYPE

SIGNATURE_CONTENT_TYPE

SIGNATURE_CONTENT_TYPE

Properties

$actor

$actor : 

Type

$verb

$verb : 

Type

$target

$target : 

Type

$result

$result : 

Type

$context

$context : 

Type

$timestamp

$timestamp : 

Type

$id

$id : 

Type

$stored

$stored : 

Type

$authority

$authority : 

Type

$version

$version : 

Type

$attachments

$attachments : 

Type

Methods

__construct()

__construct() 

compareWithSignature()

compareWithSignature(  $fromSig) 

Parameters

$fromSig

setActor()

setActor(  $value) 

Parameters

$value

getActor()

getActor() 

setVerb()

setVerb(  $value) 

Parameters

$value

getVerb()

getVerb() 

setTarget()

setTarget(  $value) 

Parameters

$value

getTarget()

getTarget() 

setObject()

setObject(  $value) 

Parameters

$value

getObject()

getObject() 

setResult()

setResult(  $value) 

Parameters

$value

getResult()

getResult() 

setContext()

setContext(  $value) 

Parameters

$value

getContext()

getContext() 

setTimestamp()

setTimestamp(  $value) 

Parameters

$value

getTimestamp()

getTimestamp() 

fromJSON()

fromJSON(  $jsonStr) 

Parameters

$jsonStr

asVersion()

asVersion(mixed  $version) : array

Collects defined object properties for a given version into an array

Parameters

mixed $version

Returns

array

__set()

__set(string  $property, mixed  $value) 

Prevent external mutation

Parameters

string $property
mixed $value

Throws

\DomainException

stamp()

stamp() 

sign()

sign(  $privateKeyFile,   $privateKeyPass,   $options = array()) 

Parameters

$privateKeyFile
$privateKeyPass
$options

verify()

verify(  $options = array()) 

Parameters

$options

setId()

setId(  $value) 

Parameters

$value

getId()

getId() 

hasId()

hasId() 

setStored()

setStored(  $value) 

Parameters

$value

getStored()

getStored() 

setAuthority()

setAuthority(  $value) 

Parameters

$value

getAuthority()

getAuthority() 

setVersion()

setVersion(  $value) 

Parameters

$value

getVersion()

getVersion() 

setAttachments()

setAttachments(  $value) 

Parameters

$value

getAttachments()

getAttachments() 

hasAttachments()

hasAttachments() 

hasAttachmentsWithContent()

hasAttachmentsWithContent() 

addAttachment()

addAttachment(  $value) 

Parameters

$value

_asVersion()

_asVersion(  $result,   $version) 

Parameters

$result
$version

_fromArray()

_fromArray(  $options) 

Parameters

$options

doMatch()

doMatch(  $a,   $b,   $description) 

Parameters

$a
$b
$description

serializeForSignature()

serializeForSignature(  $version) 

Parameters

$version