Public Member Functions | |
validate () | |
![]() | |
getCiteAs () | |
setCiteAs (string $value) | |
getItem () | |
setItem ($value) | |
getTriple () | |
setTriple (array $value) | |
![]() | |
__construct ($stream=null, $validate_stream_on_construct=true, $validate_properties=true, $validators=null, $validation_context=null) | |
setType ($types) | |
![]() | |
getValidateProperties () | |
getValidateStreamOnConstruct () | |
getValidators () | |
getDoc () | |
getId () | |
setId ($value) | |
getType () | |
getProperty ($prop_name) | |
setProperty ($prop_name, $value) | |
validateProperty ($prop_name, $value, $force_validate=false, $raise_error=true) | |
toJSONLD () | |
Additional Inherited Members | |
![]() | |
const | DEFAULT_TYPE = null |
const | ALLOWED_TYPES = [] |
![]() | |
_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 | |
Custom object class for Announce Service Result to apply the custom validation
coarnotify\patterns\announce_service_result\AnnounceServiceResultObject::validate | ( | ) |
Extend the base validation to include the following constraints:
The object type is required and must validate
ValidationError | |
coarnotify\exceptions\ValueError
Reimplemented from coarnotify\core\notify\NotifyObject.