Public Member Functions | |
__construct (int $status, ?string $location=null) | |
getStatus () | |
getLocation () | |
Public Attributes | |
const | CREATED = 201 |
const | ACCEPTED = 202 |
An object representing the response from a COAR Notify server.
Server implementations should construct and return this object with the appropriate properties when implementing the :py:meth:COARNotifyServiceBinding.notification_received
binding
coarnotify\server\COARNotifyReceipt::__construct | ( | int | $status, |
?string | $location = null ) |
Construct a new COARNotifyReceipt object with the status code and location URL (optional)
int | $status | The HTTP status code, should be one of the constants CREATED (201) or ACCEPTED (202) |
string | null | $location | The HTTP URI for the resource that was created (if present) |
coarnotify\server\COARNotifyReceipt::getLocation | ( | ) |
Get the HTTP URI of the created resource, if present
coarnotify\server\COARNotifyReceipt::getStatus | ( | ) |
Get the status code of the response. Should be one of the constants CREATED
(201) or ACCEPTED
(202)
const coarnotify\server\COARNotifyReceipt::ACCEPTED = 202 |
The status code for an accepted request
const coarnotify\server\COARNotifyReceipt::CREATED = 201 |
The status code for a created resource