Public Member Functions | |
getContext () | |
validate () | |
![]() | |
__construct ($stream=null, $validate_stream_on_construct=true, $validate_properties=true, $validators=null, $validation_context=null) | |
getOrigin () | |
setOrigin ($value) | |
getTarget () | |
setTarget ($value) | |
getObject () | |
setObject ($value) | |
getInReplyTo () | |
setInReplyTo ($value) | |
getActor () | |
setActor ($value) | |
setContext ($value) | |
![]() | |
getValidateProperties () | |
getValidateStreamOnConstruct () | |
getValidators () | |
getDoc () | |
getId () | |
setId ($value) | |
getType () | |
setType ($types) | |
getProperty ($prop_name) | |
setProperty ($prop_name, $value) | |
validateProperty ($prop_name, $value, $force_validate=false, $raise_error=true) | |
toJSONLD () | |
Public Attributes | |
const | TYPE = [ActivityStreamsTypes::ANNOUNCE, NotifyTypes::ENDORSEMENT_ACTION] |
![]() | |
const | TYPE = ActivityStreamsTypes::OBJECT |
Additional Inherited Members | |
![]() | |
_registerPropertyValidationError (ValidationError $ve, $prop_name, $value) | |
required (ValidationError $ve, $prop_name, $value) | |
requiredAndValidate (ValidationError $ve, $prop_name, $value) | |
optionalAndValidate (ValidationError $ve, $prop_name, $value) | |
![]() | |
static | deepCopy ($array) |
![]() | |
$validateStreamOnConstruct | |
$validateProperties | |
$validators | |
$validationContext | |
$stream | |
Class to represet an Announce Endorsement notification https://coar-notify.net/specification/1.0.1/announce-endorsement/
coarnotify\patterns\announce_endorsement\AnnounceEndorsement::getContext | ( | ) |
Get a context specific to AnnounceEndorsement
Reimplemented from coarnotify\core\notify\NotifyPattern.
coarnotify\patterns\announce_endorsement\AnnounceEndorsement::validate | ( | ) |
Extends the base validation to make context
required
ValidationError | |
coarnotify\exceptions\ValueError
Reimplemented from coarnotify\core\notify\NotifyPattern.