Public Member Functions | |
validate () | |
![]() | |
getMediaType () | |
setMediaType (string $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 AnnounceReviewItem which provides additional validation over the basic NotifyItem
coarnotify\patterns\announce_review\AnnounceReviewItem::validate | ( | ) |
In addition to the base validator, this:
mediaType
a required fieldValidationError | |
coarnotify\exceptions\ValueError
Reimplemented from coarnotify\core\notify\NotifyItem.