COAR Notify
 
Loading...
Searching...
No Matches
coarnotify\patterns\tentatively_accept\TentativelyAccept Class Reference
Inheritance diagram for coarnotify\patterns\tentatively_accept\TentativelyAccept:
coarnotify\core\notify\NotifyPattern coarnotify\core\notify\NotifyBase

Public Member Functions

 validate ()
 
- Public Member Functions inherited from coarnotify\core\notify\NotifyPattern
 __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)
 
 getContext ()
 
 setContext ($value)
 
- Public Member Functions inherited from coarnotify\core\notify\NotifyBase
 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::TENTATIVE_ACCEPT
 
- Public Attributes inherited from coarnotify\core\notify\NotifyPattern
const TYPE = ActivityStreamsTypes::OBJECT
 

Additional Inherited Members

- Protected Member Functions inherited from coarnotify\core\notify\NotifyBase
 _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 Protected Member Functions inherited from coarnotify\core\notify\NotifyBase
static deepCopy ($array)
 
- Protected Attributes inherited from coarnotify\core\notify\NotifyBase
 $validateStreamOnConstruct
 
 $validateProperties
 
 $validators
 
 $validationContext
 
 $stream
 

Detailed Description

Pattern to represent a Tentative Accept notification https://coar-notify.net/specification/1.0.1/tentative-accept/

Member Function Documentation

◆ validate()

coarnotify\patterns\tentatively_accept\TentativelyAccept::validate ( )

In addition to the base validation apply the following constraints:

  • The inReplyTo property is required
  • The inReplyTo value must match the object.id value
Returns
bool
Exceptions
ValidationError

coarnotify\exceptions\ValueError

Reimplemented from coarnotify\core\notify\NotifyPattern.


The documentation for this class was generated from the following file: